aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--share/functions/psub.fish2
-rw-r--r--share/functions/trap.fish2
-rw-r--r--share/functions/type.fish2
-rw-r--r--share/functions/umask.fish2
4 files changed, 4 insertions, 4 deletions
diff --git a/share/functions/psub.fish b/share/functions/psub.fish
index 9eebd13b..b3e958d4 100644
--- a/share/functions/psub.fish
+++ b/share/functions/psub.fish
@@ -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
diff --git a/share/functions/trap.fish b/share/functions/trap.fish
index ee29aa78..4a08af9d 100644
--- a/share/functions/trap.fish
+++ b/share/functions/trap.fish
@@ -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
diff --git a/share/functions/type.fish b/share/functions/type.fish
index a9b1bdff..f57c7fa8 100644
--- a/share/functions/type.fish
+++ b/share/functions/type.fish
@@ -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
diff --git a/share/functions/umask.fish b/share/functions/umask.fish
index 319ce9ac..4ddb5dd6 100644
--- a/share/functions/umask.fish
+++ b/share/functions/umask.fish
@@ -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