about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <danielsh@apache.org>2020-01-15 18:02:32 +0000
committerDaniel Shahaf <danielsh@apache.org>2020-01-16 18:21:11 +0000
commit28e11ac60b91aea5ab4b47c3cc2bf33f00ba53e4 (patch)
tree53102ed76ed9771cc4198d47ab8039de99a338cc /Test
parent0a7bfc0bd27e27829fb00cf4c8149a9fae98bb06 (diff)
downloadzsh-28e11ac60b91aea5ab4b47c3cc2bf33f00ba53e4.tar.gz
zsh-28e11ac60b91aea5ab4b47c3cc2bf33f00ba53e4.tar.xz
zsh-28e11ac60b91aea5ab4b47c3cc2bf33f00ba53e4.zip
45305: Add an XFail test: The exec-last-command optimization is applied to try/always.
Diffstat (limited to 'Test')
-rw-r--r--Test/A01grammar.ztst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index d3a591761..1e0e9a04e 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -928,3 +928,7 @@ F:Note that the behaviour of 'exit' inside try-list inside a function is unspeci
 >PIPE
 >and true
 >or false
+
+ $ZTST_testdir/../Src/zsh -fc '{ ( ) } always { echo foo }'
+-f:exec last command optimization inhibited for try/always
+>foo