39 lines
1.0 KiB
Diff
39 lines
1.0 KiB
Diff
From 6b9422dbe3917a0affb4898e38156d22cbec64e8 Mon Sep 17 00:00:00 2001
|
|
From: Chet Ramey <chet.ramey@case.edu>
|
|
Date: Tue, 4 Jan 2022 16:58:20 -0500
|
|
Subject: [PATCH] Bash-5.1 patch 13: fix tilde expansion after unquoted colons
|
|
in posix mode
|
|
|
|
---
|
|
patchlevel.h | 2 +-
|
|
subst.c | 1 +
|
|
2 files changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
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);
|
|
--
|
|
2.31.1
|
|
|