summaryrefslogtreecommitdiffstats
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-05-08 10:02:58 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-05-08 10:02:58 +0000
commit8ce657c2cbbd194532be36343fd7f1882513541e (patch)
tree6f40e8283b1bb6bf202bec586fcf3c21e09c3cba /Test
parentunposted: regex fix-ups: missing doc file plus pointer fixes (diff)
downloadzsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.gz
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.bz2
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.lz
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.xz
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.zst
zsh-8ce657c2cbbd194532be36343fd7f1882513541e.zip
Phil Pennock + tweaks: 23398 + more tweaks: exec compatibility options
Diffstat (limited to 'Test')
-rw-r--r--Test/A01grammar.ztst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 42ff8d405..22b6f9c88 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -62,6 +62,22 @@
(exec /bin/sh; echo bar)
0:`exec' precommand modifier
+ (exec -l /bin/sh -c 'echo $0')
+0:`exec' with -l option
+>-/bin/sh
+
+ (exec -a /bin/SPLATTER /bin/sh -c 'echo $0')
+0:`exec' with -a option
+>/bin/SPLATTER
+
+ (exec -a/bin/SPLOOSH /bin/sh -c 'echo $0')
+0:`exec' with -a option, no space
+>/bin/SPLOOSH
+
+ (export FOO=bar; exec -c /bin/sh -c 'echo x${FOO}x')
+0:`exec' with -c option
+>xx
+
cat() { echo Function cat executed; }
command cat && unfunction cat
0:`command' precommand modifier