The grep on the commands would sometimes output errors, causing noise and

breaking scripts.
This commit is contained in:
David Frascone 2010-11-05 09:26:26 -06:00
parent 93f797326e
commit ce08bb2ad2
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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