summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-10-13 18:17:09 +0100
committerPeter Stephenson <pws@zsh.org>2017-10-13 18:17:09 +0100
commitb3fa5c528c79b27986a77c92a48b7f70e7f9e7d3 (patch)
treea7aba1e9bf6b5549111a388a9835db091faf9122 /Test
parent57cfa8b160d16a37fcd6a5da7c8bcd492c76021e (diff)
downloadzsh-b3fa5c528c79b27986a77c92a48b7f70e7f9e7d3.tar.gz
zsh-b3fa5c528c79b27986a77c92a48b7f70e7f9e7d3.tar.xz
zsh-b3fa5c528c79b27986a77c92a48b7f70e7f9e7d3.zip
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.
Diffstat (limited to 'Test')
-rw-r--r--Test/E01options.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index 6929f5140..0f6bb3455 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -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
   }