mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
The grep on the commands would sometimes output errors, causing noise and
breaking scripts.
This commit is contained in:
parent
93f797326e
commit
ce08bb2ad2
4 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue