fix expansion of $* and $@ in contexts where word splitting is not performed to be more consistent across different word expansions; fix pathname canonicalization when setting $BASH

This commit is contained in:
Chet Ramey
2025-11-24 09:51:15 -05:00
parent bcac47f08a
commit 4e705ed53a
13 changed files with 200 additions and 37 deletions
+3 -1
View File
@@ -135,7 +135,7 @@ help_builtin (WORD_LIST *list)
globpat = glob_pattern_p (pattern);
if (globpat)
printf (_("Shell commands matching pattern '%s':\n\n"), pattern);
printf (_("Shell commands matching pattern '%s':\n"), pattern);
for (pass = 1, this_found = 0; pass < 3; pass++)
{
@@ -153,6 +153,8 @@ help_builtin (WORD_LIST *list)
if (m)
{
if (globpat && this_found == 0)
putchar ('\n');
this_found = 1;
match_found++;
if (dflag)