summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2022-01-04 16:58:20 -0500
committerChet Ramey <chet.ramey@case.edu>2022-01-04 16:58:20 -0500
commit6b9422dbe3917a0affb4898e38156d22cbec64e8 (patch)
tree64ccd5562ff77588288aa0df7ce052189c8d6d3d
parent15409324f1974d41c183904ad575da7188058c1c (diff)
downloadbash-6b9422dbe3917a0affb4898e38156d22cbec64e8.tar.gz
Bash-5.1 patch 13: fix tilde expansion after unquoted colons in posix mode
-rw-r--r--patchlevel.h2
-rw-r--r--subst.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/patchlevel.h b/patchlevel.h
index eb2aca52..d8a1b2a9 100644
--- a/patchlevel.h
+++ b/patchlevel.h
@@ -25,6 +25,6 @@
regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
looks for to find the patch level (for the sccs version string). */
-#define PATCHLEVEL 12
+#define PATCHLEVEL 13
#endif /* _PATCHLEVEL_H_ */
diff --git a/subst.c b/subst.c
index 327de083..dda1d55c 100644
--- a/subst.c
+++ b/subst.c
@@ -3825,6 +3825,7 @@ expand_string_assignment (string, quoted)
#else
td.flags = W_ASSIGNRHS;
#endif
+ td.flags |= (W_NOGLOB|W_TILDEEXP);
td.word = savestring (string);
value = call_expand_word_internal (&td, quoted, 0, (int *)NULL, (int *)NULL);
FREE (td.word);