gsu com_help(): Be more strict when looking for command documentation.
authorAndre Noll <maan@systemlinux.org>
Mon, 30 Aug 2010 21:52:07 +0000 (23:52 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:08 +0000 (21:36 +0200)
funcs/gsu

index e91970e..df25bf6 100644 (file)
--- 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