about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-12-10 03:16:53 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-12-10 03:16:53 +0000
commit4736e253beca45aed88ef9a8d5225c7164208c45 (patch)
tree3c1d053a7b09cd5ccb99867c00ff04f73078517d /Test
parent3ac2becb4fd14b1a63e6786492c823e0f4ccce35 (diff)
downloadzsh-4736e253beca45aed88ef9a8d5225c7164208c45.tar.gz
zsh-4736e253beca45aed88ef9a8d5225c7164208c45.tar.xz
zsh-4736e253beca45aed88ef9a8d5225c7164208c45.zip
Merge 24150: Exit status of null command should be exit status of last cmdsubst.
Diffstat (limited to 'Test')
-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