]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
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 1d23973a46cffe85159972a6bbaae62bf1373dd3..3f7d379ffcf3867b2c07a660626db17ca2b5cb9a 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