From: Andre Noll Date: Mon, 30 Aug 2010 21:52:07 +0000 (+0200) Subject: gsu com_help(): Be more strict when looking for command documentation. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=2e6e1e17c1fd1e247eb6b458549df92e03536612 gsu com_help(): Be more strict when looking for command documentation. --- 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