# 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
return
esac
- eval ${gsu_config_var_prefix}_$name='"'${val:=$default_value}'"'
-
+ eval ${gsu_config_var_prefix}_$name="\"${val:=$default_value}\""
# Check option type. ATM, only num and string are supported
# Other types may be added without breaking compatibility
case "$option_type" in