gsu: Print the name of the invalid config variable on errors.
[gsu.git] / funcs / gsu
index ca2016a921335354698882caf508c0b09ae81cf1..b80fc919659c008420cc54d79890ea7d14ae4d7f 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -306,7 +306,7 @@ _gsu_check_options()
                # only.  Moreover it must not start with [a-zA-Z].
 
                ret=-$E_GSU_BAD_CONFIG_VAR
-               result="$name"
+               result="name: '$name'"
                # bash's =~ works only for 3.2 and newer, so use grep
                echo "$name" | grep '^[a-zA-Z][a-zA-Z_0123456789]*$' &> /dev/null;
                [[ $? -ne 0 ]] && return