From 6b9422dbe3917a0affb4898e38156d22cbec64e8 Mon Sep 17 00:00:00 2001 From: Chet Ramey 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 Conflict:NA Reference:https://git.savannah.gnu.org/cgit/bash.git/commit/?id=6b9422dbe3917a0affb4898e38156d22cbec64e8 --- subst.c | 1 + 1 files changed, 1 insertions(+) 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.33.0