From 0d06c092c9856b20a12dd9bca115b0f9a2ca9b99 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Fri, 27 Jul 2012 10:58:12 +0200 Subject: [PATCH] gsu: Avoid referencing an unset variable. This causes an error if scripts use set -u. --- misc/gsu/subcommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/gsu/subcommand b/misc/gsu/subcommand index 5ccb3fc..1758f13 100644 --- a/misc/gsu/subcommand +++ b/misc/gsu/subcommand @@ -115,7 +115,7 @@ _com_prefs() local name= option_type= default_value= required= local description= help_text= eval "${gsu_options[$i]}" - eval val='"$'${gsu_config_var_prefix}_$name'"' + eval val='"${'${gsu_config_var_prefix}_$name:-'}"' case "$required" in true|yes) printf "# required" -- 2.39.5