-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
glob: don't raise error for unknown user with '~'
* A tilde can optionally be followed by a username * If a provided username is not found, treat the input as no-match instead of raising an error * This is consistent with Linux/bash, OpenBSD/ksh and the perl builtin glob() function * If '~' appears without a username, it is substituted for the current user's home directory %echo ~mail/a # valid user /var/mail/a %echo ~mayel/a # not found ~mayel/a %echo ~/a /home/pi/a
- Loading branch information
Showing
1 changed file
with
28 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters