From bc4497df245d5da1b1db0f78c7a071227436ac84 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@systemlinux.org>
Date: Mon, 14 Jun 2010 01:46:21 +0200
Subject: [PATCH] gsu: Print the name of the invalid config variable on errors.

---
 funcs/gsu | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
-- 
2.39.5