about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2016-09-29 11:00:44 +0100
committerPeter Stephenson <pws@zsh.org>2016-09-29 11:01:00 +0100
commit07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4 (patch)
treec8a34538da3a44dd49ae0d6d1f82539e56e5fc41 /Test/A01grammar.ztst
parentd44d23c7578285375f4ded759f7d8412320c3319 (diff)
downloadzsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.tar.gz
zsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.tar.xz
zsh-07c8fbe59632be71e4ad5bfafbf6aa4884cd04c4.zip
34943: Fixes for "command" with multiple options.
These need to combine properly, and alos "command -p" with either
-v or -V needs to search for builtins and then using the default
system path.
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 394480c19..921ff99a4 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -113,6 +113,16 @@
 <External command cat executed
 >External command cat executed
 
+  command -pv cat
+  command -pv echo
+  command -p -V cat
+  command -p -V -- echo
+0:command -p in combination
+*>*/cat
+>echo
+>cat is /*/cat
+>echo is a shell builtin
+
   cd() { echo Not cd at all; }
   builtin cd . && unfunction cd
 0:`builtin' precommand modifier