This makes newlines in the default of a gsu config option work.
eval "${gsu_options[$i]}"
-
# Check name. It must be non-empty and consist of [a-zA-Z_0-9]
# only. Moreover it must not start with [a-zA-Z].
-
ret=-$E_GSU_BAD_CONFIG_VAR
result="name: '$name'"
# bash's =~ works only for 3.2 and newer, so use grep
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