fix to backslash quoting of glob pattern characters; allow newly-loaded compspecs to be used in more cases; fixes to the cross-compiling environment; avoid potential overflow in GLOBSORT processing

This commit is contained in:
Chet Ramey
2024-05-20 10:48:44 -04:00
parent b3d8c8a4e7
commit dbd27e54cc
18 changed files with 120 additions and 51 deletions
+6
View File
@@ -801,4 +801,10 @@ otwone
argv[1] = </>
argv[1] = </>
1/##2/%3
1/##2/##3
1##2/%3
1/%%2/#3
1/%%2/%%3
1%%2/#3
./new-exp.tests: line 1: ABXD: parameter unset
+12
View File
@@ -655,5 +655,17 @@ patfunc foo
# caused core dumps because of bad bracket expression parsing in bash-5.0
eval : $'${x/#[0\xef\xbf\xbd\\Z[:]]}'
a=1/%2/%3
echo "${a/\%/##}"
echo "${a//\%/##}"
echo "${a/\/%/##}"
b=1/#2/#3
echo "${b/\#/%%}"
echo "${b//\#/%%}"
echo "${b/\/#/%%}"
unset a b
expect $0: 'ABXD: parameter unset'
${THIS_SH} -c 'recho ${ABXD:?"parameter unset"}' $0