gsu: Print the name of the invalid config variable on errors.
authorAndre Noll <maan@systemlinux.org>
Sun, 13 Jun 2010 23:46:21 +0000 (01:46 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000 (21:36 +0200)
funcs/gsu

index ca2016a..b80fc91 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