From 2e6e1e17c1fd1e247eb6b458549df92e03536612 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 30 Aug 2010 23:52:07 +0200 Subject: [PATCH] gsu com_help(): Be more strict when looking for command documentation. --- funcs/gsu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/funcs/gsu b/funcs/gsu index e91970e..df25bf6 100644 --- a/funcs/gsu +++ b/funcs/gsu @@ -304,7 +304,7 @@ _com_help() fi ret=$GSU_SUCCESS if grep -q "^com_$1()" $0; then - sed -e "1,/com_$1()/d" -e '/^{/,$d' -e 's/^## *//' $0 + sed -e "1,/^com_$1()$/d" -e '/^{/,$d' -e 's/^## *//' $0 return fi _gsu_print_available_commands -- 2.39.5