aboutsummaryrefslogtreecommitdiffstats
path: root/assoc.c
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2015-05-19 14:55:51 -0400
committerTom Powell <zifnab@zifnab06.net>2015-10-08 20:52:45 -0700
commit5a7b5f98629fed19c9706a4505e6112ce2e01393 (patch)
tree3ab35a552d2982a3c979812cf8af876127ba8203 /assoc.c
parent91d67da8d4a1403cab5fe63dc555880b64a80061 (diff)
downloadandroid_external_bash-5a7b5f98629fed19c9706a4505e6112ce2e01393.tar.gz
android_external_bash-5a7b5f98629fed19c9706a4505e6112ce2e01393.tar.bz2
android_external_bash-5a7b5f98629fed19c9706a4505e6112ce2e01393.zip
Bash-4.3 patch 37
Change-Id: I2cb7104766891af72f26bff9567def7c170ea085
Diffstat (limited to 'assoc.c')
-rw-r--r--assoc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/assoc.c b/assoc.c
index f9ed881..7298a1f 100644
--- a/assoc.c
+++ b/assoc.c
@@ -436,6 +436,8 @@ assoc_to_assign (hash, quoted)
#if 1
if (sh_contains_shell_metas (tlist->key))
istr = sh_double_quote (tlist->key);
+ else if (ALL_ELEMENT_SUB (tlist->key[0]) && tlist->key[1] == '\0')
+ istr = sh_double_quote (tlist->key);
else
istr = tlist->key;
#else