summary refs log tree commit diff
path: root/Test/D04parameter.ztst
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-09-05 21:02:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-09-05 21:02:08 +0000
commitdb31a13ecdd8306aad63319ace28bf7d029d4829 (patch)
treee57d6287ae80fb12341a32eae7b8bc0f4d5f2711 /Test/D04parameter.ztst
parent7ce1d5735832e51bc13e255f2e8549873c9688ff (diff)
downloadzsh-db31a13ecdd8306aad63319ace28bf7d029d4829.tar.gz
zsh-db31a13ecdd8306aad63319ace28bf7d029d4829.tar.xz
zsh-db31a13ecdd8306aad63319ace28bf7d029d4829.zip
25627: add $ZSH_SUBSHELL
Diffstat (limited to 'Test/D04parameter.ztst')
-rw-r--r--Test/D04parameter.ztst15
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index 433f7743b..721396e73 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -1047,3 +1047,18 @@
 >and !that!
 >of *this*
 >or (the|other)
+
+  print $ZSH_SUBSHELL
+  (print $ZSH_SUBSHELL)
+  ( (print $ZSH_SUBSHELL) )
+  ( (print $ZSH_SUBSHELL); print $ZSH_SUBSHELL )
+  print $(print $ZSH_SUBSHELL)
+  cat =(print $ZSH_SUBSHELL)
+0:ZSH_SUBSHELL
+>0
+>1
+>2
+>2
+>1
+>1
+>1