Bash-5.1 patch 13: fix tilde expansion after unquoted colons in posix mode

This commit is contained in:
Chet Ramey
2022-01-04 16:58:20 -05:00
parent 15409324f1
commit 6b9422dbe3
2 changed files with 2 additions and 1 deletions
+1 -1
View 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_ */
+1
View File
@@ -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);