help: Fix error if no argument is given

This commit is contained in:
Fabian Homborg 2017-08-11 18:27:58 +02:00 committed by Kurtis Rader
parent 146c62c603
commit 4e2b11f2e0

View file

@ -100,7 +100,7 @@ function help --description 'Show help for the fish shell'
case "*" case "*"
# If $fish_help_item is empty, this will fail, # If $fish_help_item is empty, this will fail,
# and $fish_help_page will end up as index.html # 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 # Prefer to use fish's man pages, to avoid
# the annoying useless "builtin" man page bash # the annoying useless "builtin" man page bash
# installs on OS X # installs on OS X