]> git.tuebingen.mpg.de Git - gsu.git/blobdiff - funcs/gsu
gsu com_help(): Be more strict when looking for command documentation.
[gsu.git] / 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