about summary refs log tree commit diff
path: root/Test/A01grammar.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2022-12-12 10:30:13 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2022-12-12 10:30:13 +0000
commit67d4bf5bb936a5b95160410b4790f2bf4113c75f (patch)
tree5fefa872c290a8990f42d0a1a510669b2e2cd9c0 /Test/A01grammar.ztst
parent14559421e2a054f9b09d6fa1971158a5e7e162a6 (diff)
downloadzsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.tar.gz
zsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.tar.xz
zsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.zip
51134: ! return doesn't change the return status
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r--Test/A01grammar.ztst12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst
index 0312fe94e..b3aea1055 100644
--- a/Test/A01grammar.ztst
+++ b/Test/A01grammar.ztst
@@ -970,3 +970,15 @@ F:its expectations.
 0:Non-interactive shell command input is line buffered
 >Value is first
 >Value is second
+
+ fn() {
+   ! false
+ }
+0:! inverts the status of implicit return
+
+ fn () {
+   false
+   ! return
+ }
+ fn
+1:! does not affect return status of explicit return