about summary refs log tree commit diff
path: root/Test/E01options.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-04-26 09:44:38 +0100
committerPeter Stephenson <pws@zsh.org>2017-04-26 09:44:38 +0100
commit408b92b168078a338f5fc2c2f95f39f8aa8e5f67 (patch)
treee77e749ecc39de774bfab18e4acfe6adeac9d593 /Test/E01options.ztst
parentd78b02218eb64aa117f883716d0e039e8604081e (diff)
downloadzsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.tar.gz
zsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.tar.xz
zsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.zip
41008: Handle expansions for precommand modifiers
Diffstat (limited to 'Test/E01options.ztst')
-rw-r--r--Test/E01options.ztst14
1 files changed, 14 insertions, 0 deletions
diff --git a/Test/E01options.ztst b/Test/E01options.ztst
index 2bd4fdb1a..dac9430cc 100644
--- a/Test/E01options.ztst
+++ b/Test/E01options.ztst
@@ -804,6 +804,20 @@
 >print is a shell builtin
 ?(eval):8: command not found: print
 
+  (
+     setopt posixbuiltins
+     opts=()
+     command $opts print foo
+     opts=(-v)
+     command $opts print
+     opts=(-V)
+     command $opts print
+  )
+0:command with options from expansion
+>foo
+>print
+>print is a shell builtin
+
   # With non-special command: original value restored
   # With special builtin: new value kept
   # With special builtin preceeded by "command": original value restored.