1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 16:50:58 +01:00

41877: Separate out SH_FILE_EXPANSION loop from parameter substitution.

Parameter substitution can add nodes that need to be rescanned by
it, but not by file expansion, so the two don't play well together.
This commit is contained in:
Peter Stephenson 2017-10-13 18:17:09 +01:00
parent 57cfa8b160
commit b3fa5c528c
3 changed files with 41 additions and 16 deletions

View file

@ -1038,6 +1038,16 @@ F:Regression test for workers/41811
>~/one
>~/two
(
setopt shfileexpansion
set -- also appearing
print -l $*$*
)
0:SH_FILE_EXPANSION interaction with inserting nodes from parameters
>also
>appearingalso
>appearing
testpat() {
if [[ $1 = ${~2} ]]; then print $1 $2 yes; else print $1 $2 no; fi
}