From: Chet Ramey Date: Tue, 4 Jan 2022 21:58:20 +0000 (-0500) Subject: Bash-5.1 patch 13: fix tilde expansion after unquoted colons in posix mode X-Git-Tag: bash-5.2-alpha~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6b9422dbe3917a0affb4898e38156d22cbec64e8;p=thirdparty%2Fbash.git Bash-5.1 patch 13: fix tilde expansion after unquoted colons in posix mode --- diff --git a/patchlevel.h b/patchlevel.h index eb2aca528..d8a1b2a9d 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 327de0836..dda1d55cc 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);