From dc90e460fea9b7d0012e3fa5f9f9f46ef1fc00ad Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 7 Nov 2006 23:12:11 +1000 Subject: Fix a bug in the help function causing help to fail when trying to open help for a builtin command. Thanks to Reuben Thomas for the report. darcs-hash:20061107131211-ac50b-9727a813d940b34923b23b073c80a7b42c023486.gz --- share/functions/help.fish | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'share/functions/help.fish') diff --git a/share/functions/help.fish b/share/functions/help.fish index 3919a121..c93270ec 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -75,17 +75,15 @@ function help -d (N_ "Show help for the fish shell") case "" set fish_help_page index.html case "." - set fish_help_page "builtins.html\#source" + set fish_help_page "commands.html\#source" case difference set fish_help_page difference.html case globbing set fish_help_page "index.html\#expand" - case (builtin -n) - set fish_help_page "builtins.html\#$fish_help_item" # This command substitution should locate all commands with # documentation. It's a bit of a hack, since it relies on the - # Doxygen markup format to never change... + # Doxygen markup format to never change. case (sed -n < $__fish_help_dir/commands.html -e "s/.*

.*/\1/p") set fish_help_page "commands.html\#$fish_help_item" -- cgit v1.2.3