gsu: Fix handling of config options with newlines.
authorAndre Noll <maan@systemlinux.org>
Sun, 27 Mar 2011 09:49:35 +0000 (11:49 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:39:58 +0000 (21:39 +0200)
Without this, newlines are transformed into spaces.

funcs/gsu

index 1d23973..3f7d379 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -378,7 +378,7 @@ _gsu_check_options()
                        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