Fix bug in help builtin that caused fish to show index page instead of command-specific help

darcs-hash:20060613152224-ac50b-d1841f7069e4fee2c569fb0ee079efd3cfe7de8a.gz
This commit is contained in:
axel 2006-06-14 01:22:24 +10:00
parent 58aa1e75c1
commit d7d2c82a82

View file

@ -79,7 +79,7 @@ function help -d (N_ "Show help for the fish shell")
# documentation. It's a bit of a hack, since it relies on the # 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 < /usr/share/doc/fish-1.21.7/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p") case (sed -n < $__fish_help_dir/commands.html -e "s/.*<h2><a class=\"anchor\" name=\"\([^\"]*\)\">.*/\1/p")
set fish_help_page "commands.html\#$fish_help_item" set fish_help_page "commands.html\#$fish_help_item"
case $help_topics case $help_topics
set fish_help_page "index.html\#$fish_help_item" set fish_help_page "index.html\#$fish_help_item"