diff options
author | Peter Stephenson <pws@zsh.org> | 2017-04-26 09:44:38 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2017-04-26 09:44:38 +0100 |
commit | 408b92b168078a338f5fc2c2f95f39f8aa8e5f67 (patch) | |
tree | e77e749ecc39de774bfab18e4acfe6adeac9d593 /Test/A01grammar.ztst | |
parent | d78b02218eb64aa117f883716d0e039e8604081e (diff) | |
download | zsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.tar.gz zsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.tar.xz zsh-408b92b168078a338f5fc2c2f95f39f8aa8e5f67.zip |
41008: Handle expansions for precommand modifiers
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r-- | Test/A01grammar.ztst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index e4b6870d7..32caf5f68 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -103,6 +103,13 @@ 0:`exec' with -a option, no space >/bin/SPLOOSH + ( + opts=(-a /bin/WHOOOSH) + exec $opts /bin/sh -c 'echo $0' + ) +0:`exec' with -a option from expansion +>/bin/WHOOOSH + (export FOO=bar; exec -c /bin/sh -c 'echo x${FOO}x') 0:`exec' with -c option >xx @@ -123,6 +130,21 @@ >cat is /*/cat >echo is a shell builtin + args=( + 'command -pv cat' + 'command -pv echo' + 'command -p -V cat' + 'command -p -V -- echo' + ) + for arg in $args; do + ${=arg} + done +0:command -p in combination, using expansion +*>*/cat +>echo +>cat is /*/cat +>echo is a shell builtin + cd() { echo Not cd at all; } builtin cd . && unfunction cd 0:`builtin' precommand modifier |