From e4ade8f41b59c0f66f4162dae683f856fee1ed0f Mon Sep 17 00:00:00 2001 From: axel Date: Sun, 4 Dec 2005 23:22:18 +1000 Subject: [PATCH] Remove silly warnings in help script darcs-hash:20051204132218-ac50b-e9e74283b7fe3f12a9af90f2b6d93b189e80a684.gz --- init/fish_function.fish | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/init/fish_function.fish b/init/fish_function.fish index 1359e1704..dc805449e 100644 --- a/init/fish_function.fish +++ b/init/fish_function.fish @@ -132,18 +132,20 @@ function help -d "Show help for the fish shell" return 1 end - set fish_help_item $argv[1] + if count $argv >/dev/null + set fish_help_item $argv[1] + end set fish_help_page "" - if test $fish_help_item = . + if test "$fish_help_item" = . set fish_help_page "builtins.html\#source" end - if test $fish_help_item = difference + if test "$fish_help_item" = difference set fish_help_page difference.html end - if test $fish_help_item = globbing + if test "$fish_help_item" = globbing set fish_help_page "index.html\#expand" end @@ -561,7 +563,7 @@ function __fish_type_help -d "Help for the type shellscript function" set bullet \* if expr match "$LANG" ".*UTF" >/dev/null - set bullet \u2022 + set bullet \u2022 end echo \ttype - Indicate how a name would be interpreted if used as a \n\tcommand name