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
+28
View File
@@ -446,3 +446,31 @@ declare -i a="7"
declare -- a="42"
FOO
declare -u A="FOO"
exp14.sub
!Q= <a b c> <a:b:c>
Q= <a b c> <a:b:c>
!Q= <a b c> <a:b:c>
Q= <a b c> <a:b:c>
!Q- <a b c> <a:b:c>
Q- <a b c> <a:b:c>
!Q? <a b c> <a:b:c>
Q? <a b c> <a:b:c>
!Q+ <a b c> <a:b:c>
Q+ <a b c> <a:b:c>
+Q+ <a b c> <a:b:c>
!Q: <a b c> <a:b:c>
Q: <a:b:c> <a:b:c>
!Q# <a b c> <a:b:c>
Q# <a:b:c> <a:b:c>
!Q% <a b c> <a:b:c>
Q% <a:b:c> <a:b:c>
!Q/ <x x x> <x:x:x>
Q/ <x:x:x> <x:x:x>
!Q^ <A B C> <A:B:C>
Q^ <A:B:C> <A:B:C>
!Q, <a b c> <a:b:c>
Q, <a:b:c> <a:b:c>
!Q@Q <'a' 'b' 'c'> <'a':'b':'c'>
Q@Q <'a':'b':'c'> <'a':'b':'c'>
!Q@A <set -- 'a':'b':'c'> <set -- 'a':'b':'c'>
Q@A <set -- 'a':'b':'c'> <set -- 'a':'b':'c'>