summaryrefslogtreecommitdiffstats
path: root/Test/D08cmdsubst.ztst
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2007-12-09 23:53:33 +0000
committerBart Schaefer <barts@users.sourceforge.net>2007-12-09 23:53:33 +0000
commita124da3a4a4bf6e91a567033e1e03241d9d0faa9 (patch)
treef23fefa2ace89ded670c1ead15cc6195dac3cf71 /Test/D08cmdsubst.ztst
parent24197: interface to ztrftime() for insufficient memory was broken (diff)
downloadzsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar.gz
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar.bz2
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar.lz
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar.xz
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.tar.zst
zsh-a124da3a4a4bf6e91a567033e1e03241d9d0faa9.zip
24150: Exit status of null command should be exit status of last cmdsubst.
Diffstat (limited to 'Test/D08cmdsubst.ztst')
-rw-r--r--Test/D08cmdsubst.ztst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Test/D08cmdsubst.ztst b/Test/D08cmdsubst.ztst
index 6cbcbf929..015796ed6 100644
--- a/Test/D08cmdsubst.ztst
+++ b/Test/D08cmdsubst.ztst
@@ -81,3 +81,11 @@
>third: file1.txt file2.txt
>fourth: *
>fifth: file1.txt file2.txt
+
+ $(exit 0) $(exit 3) || print $?
+0:empty command uses exit value of last substitution
+>3
+
+ X=$(exit 2) $(exit 0) || print $?
+0:variable assignments processed after other substitutions
+>2