From: Andre Noll Date: Sun, 13 Jun 2010 23:46:21 +0000 (+0200) Subject: gsu: Print the name of the invalid config variable on errors. X-Git-Url: http://git.tuebingen.mpg.de/?p=gsu.git;a=commitdiff_plain;h=bc4497df245d5da1b1db0f78c7a071227436ac84 gsu: Print the name of the invalid config variable on errors. --- diff --git a/funcs/gsu b/funcs/gsu index ca2016a..b80fc91 100644 --- 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