From 5fca92994ff94a0806413efe21f24f5f99b9e423 Mon Sep 17 00:00:00 2001 From: Dylan Smith Date: Tue, 23 Nov 2010 23:37:09 +0800 Subject: [PATCH] help.fish: Fix the sed expression to find anchors with id or name Previously the expression only searched for anchors with a name attribute, but doxygen 1.7.1 is producing anchors with the id attribute instead. The sed expression allows both cases for compatibility. I also used single quotes for the sed expression to avoid escaping double quotes. Signed-off-by: Grissiom --- 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 bd5360026..9531c103e 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -86,7 +86,7 @@ function help --description "Show help for the fish shell" # documentation. It's a bit of a hack, since it relies on the # Doxygen markup format to never change. - case (sed -n < $__fish_help_dir/commands.html -e "s/.*

.*/\1/p") + case (sed -n 's/.*

.*/\2/p' $__fish_help_dir/commands.html) set fish_help_page "commands.html\#$fish_help_item" case $help_topics set fish_help_page "index.html\#$fish_help_item"