about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2017-09-10 18:02:52 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2017-09-10 18:02:52 +0100
commitc9df6bc8d46415e270273777c80025948762e897 (patch)
treeeeca2dfc78f8b8f7b36a44fd347fd2df80d309f3 /Test/A01grammar.ztst
parente44600d9aac905aea08050c7387d6effd52c8539 (diff)
downloadzsh-c9df6bc8d46415e270273777c80025948762e897.tar.gz
zsh-c9df6bc8d46415e270273777c80025948762e897.tar.xz
zsh-c9df6bc8d46415e270273777c80025948762e897.zip
41662: exec -a arguments weren't sanitised
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 0302c9624..5e7d6acd8 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -103,6 +103,12 @@
 0:`exec' with -a option, no space
 >/bin/SPLOOSH
 
+  (exec -a foo* $ZTST_testdir/../Src/zsh -fc 'print -r -- ${(V)0}')
+  (exec -a "" $ZTST_testdir/../Src/zsh -fc 'print -r -- ${(V)0}')
+0:rationalisation of arguments to exec -a
+>foo*
+>
+
   (
     opts=(-a /bin/WHOOOSH)
     exec $opts /bin/sh -c 'echo $0'