diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-08 10:02:58 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2007-05-08 10:02:58 +0000 |
commit | 8ce657c2cbbd194532be36343fd7f1882513541e (patch) | |
tree | 6f40e8283b1bb6bf202bec586fcf3c21e09c3cba /Test | |
parent | e4cdad9700342b4dbc1837307580134eee274f33 (diff) | |
download | zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.gz zsh-8ce657c2cbbd194532be36343fd7f1882513541e.tar.xz zsh-8ce657c2cbbd194532be36343fd7f1882513541e.zip |
Phil Pennock + tweaks: 23398 + more tweaks: exec compatibility options
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A01grammar.ztst | 16 |
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 |