]> git.tuebingen.mpg.de Git - gsu.git/commitdiff
gsu: Fix quoting for multi-line variables.
authorAndre Noll <maan@systemlinux.org>
Mon, 5 Apr 2010 16:29:14 +0000 (18:29 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Fri, 29 Aug 2014 19:36:07 +0000 (21:36 +0200)
The new para_adm topics command triggered this bug.

funcs/gsu

index 7e066f7664016186cba91db735977e36dfd5c164..ca2016a921335354698882caf508c0b09ae81cf1 100644 (file)
--- a/funcs/gsu
+++ b/funcs/gsu
@@ -331,8 +331,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