mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 00:10:41 +08:00
Fix umask in Linux https://gist.github.com/4627181
This commit is contained in:
parent
92b2376c23
commit
2b35b3f06e
@ -144,7 +144,7 @@ function umask --description "Set default file permission mask"
|
||||
if not getopt -T >/dev/null
|
||||
# GNU getopt
|
||||
set longopt -l as-command,symbolic,help
|
||||
set options -o $shortopt -l $longopt --
|
||||
set options -o $shortopt $longopt --
|
||||
# Verify options
|
||||
if not getopt -n umask $options $argv >/dev/null
|
||||
return 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user