]> git.tue.mpg.de Git - gsu.git/commitdiff
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 e91970ec14f73d0ec83b1213ea2a232eb49ffb6d..df25bf63c429ca9873024a2dd4e8283be161143c 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