From c9df6bc8d46415e270273777c80025948762e897 Mon Sep 17 00:00:00 2001
From: Peter Stephenson
Date: Sun, 10 Sep 2017 18:02:52 +0100
Subject: 41662: exec -a arguments weren't sanitised
---
Test/A01grammar.ztst | 6 ++++++
1 file changed, 6 insertions(+)
(limited to 'Test/A01grammar.ztst')
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'
--
cgit 1.4.1