mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
The grep on the commands would sometimes output errors, causing noise and
breaking scripts.
This commit is contained in:
parent
93f797326e
commit
ce08bb2ad2
@ -12,7 +12,7 @@ function psub --description "Read from stdin into a file and output the filename
|
||||
set longopt
|
||||
end
|
||||
|
||||
if not getopt -n psub -Q $shortopt $longopt -- $argv
|
||||
if not getopt -n psub -Q $shortopt $longopt -- $argv >/dev/null
|
||||
return 1
|
||||
end
|
||||
|
||||
|
@ -34,7 +34,7 @@ function trap -d 'Perform an action when the shell recives a signal'
|
||||
set longopt -l print,help,list-signals
|
||||
end
|
||||
|
||||
if not getopt -n type -Q $shortopt $longopt -- $argv
|
||||
if not getopt -n type -Q $shortopt $longopt -- $argv >/dev/null
|
||||
return 1
|
||||
end
|
||||
|
||||
|
@ -15,7 +15,7 @@ function type --description "Print the type of a command"
|
||||
set longopt -l type,path,force-path,all,no-functions,help
|
||||
end
|
||||
|
||||
if not getopt -n type -Q $shortopt $longopt -- $argv
|
||||
if not getopt -n type -Q $shortopt $longopt -- $argv >/dev/null
|
||||
return 1
|
||||
end
|
||||
|
||||
|
@ -145,7 +145,7 @@ function umask --description "Set default file permission mask"
|
||||
set longopt -l as-command,symbolic,help
|
||||
end
|
||||
|
||||
if not getopt -n umask -Q $shortopt $longopt -- $argv
|
||||
if not getopt -n umask -Q $shortopt $longopt -- $argv >/dev/null
|
||||
return 1
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user