]> git.ipfire.org Git - thirdparty/bash.git/commitdiff
Bash-5.1 patch 13: fix tilde expansion after unquoted colons in posix mode
authorChet Ramey <chet.ramey@case.edu>
Tue, 4 Jan 2022 21:58:20 +0000 (16:58 -0500)
committerChet Ramey <chet.ramey@case.edu>
Tue, 4 Jan 2022 21:58:20 +0000 (16:58 -0500)
patchlevel.h
subst.c

index eb2aca528af3a0d2c49f392527ca05eeb310f529..d8a1b2a9d7a9af0b2f4c83f792a0f27dd99b2c98 100644 (file)
@@ -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 327de08369ace2113654e470c7588a372d713ac5..dda1d55ccc936989a1b2ba6085a48e8e2f52585e 100644 (file)
--- 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);