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
+4 -2
View File
@@ -354,7 +354,7 @@ found
./builtins9.sub: line 52: hash: /: Is a directory
builtin hash -p /nosuchfile cat
builtins10.sub
./builtins10.sub: line 17: help: -x: invalid option
./builtins10.sub: line 19: help: -x: invalid option
help: usage: help [-dms] [pattern ...]
These shell commands are defined internally. Type `help' to see this list.
Type `help name' to find out more about the function `name'.
@@ -495,7 +495,9 @@ A star (*) next to a name means that the command is disabled.
getopts optstring name [arg ...] while COMMANDS; do COMMANDS-2; done
hash [-lr] [-p pathname] [-dt] [name > { COMMANDS ; }
help [-dms] [pattern ...]
./builtins10.sub: line 39: help: no help topics match 'bash'. Try 'help help', 'man -k bash', or 'info bash'.
./builtins10.sub: line 41: help: no help topics match 'bash'. Try 'help help', 'man -k bash', or 'info bash'.
Shell commands matching pattern 'ad*x':
./builtins10.sub: line 44: help: no help topics match 'ad*x'.
builtins11.sub
unlimited
unlimited