From 8ce657c2cbbd194532be36343fd7f1882513541e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 8 May 2007 10:02:58 +0000 Subject: Phil Pennock + tweaks: 23398 + more tweaks: exec compatibility options --- Test/A01grammar.ztst | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1