# 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
_gsu_init_errors
_gsu_check_options
if [[ "$ret" -lt 0 ]]; then
- if [[ "$1" != "help" && "$1" != "man" && "$1" != "prefs" ]]; then
+ if [[ "$1" != "help" && "$1" != "man" ]]; then
gsu_err_msg
exit 1
fi