mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-08 12:50:49 +02:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user