From 4e2b11f2e0811d1e43131340d6c334ca1ee3301e Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 11 Aug 2017 18:27:58 +0200 Subject: [PATCH] help: Fix error if no argument is given --- share/functions/help.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index 16cd17603..30cf5d9d9 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -100,7 +100,7 @@ function help --description 'Show help for the fish shell' case "*" # If $fish_help_item is empty, this will fail, # and $fish_help_page will end up as index.html - if type -q -f $fish_help_item + if type -q -f "$fish_help_item" # Prefer to use fish's man pages, to avoid # the annoying useless "builtin" man page bash # installs on OS X