about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-20 07:47:53 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-01-29 09:14:53 +0000
commitbced1beb8cc530ea28aa994808707043dd156fb8 (patch)
tree30b7dca6a24e5a11f6b9b4dd4fd34c73a9f2f098 /Test
parenta090acab63c02900e86bd268fc9194fccf459d08 (diff)
downloadzsh-bced1beb8cc530ea28aa994808707043dd156fb8.tar.gz
zsh-bced1beb8cc530ea28aa994808707043dd156fb8.tar.xz
zsh-bced1beb8cc530ea28aa994808707043dd156fb8.zip
37700: Teach ${(z)} the 'repeat WORD SUBLIST' syntax.
Diffstat (limited to 'Test')
-rw-r--r--Test/D04parameter.ztst16
1 files changed, 16 insertions, 0 deletions
diff --git a/Test/D04parameter.ztst b/Test/D04parameter.ztst
index a6817fe22..458c5bbe1 100644
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -479,6 +479,8 @@
     '(( 3 + 1 == 8 / 2 ))'
     'for (( i = 1 ; i < 10 ; i++ ))'
     '((0.25542 * 60) - 15)*60'
+    'repeat 3 (x)'
+    'repeat 3 (echo foo; echo bar)'
   )
   for string in $strings; do
     array=(${(z)string})
@@ -514,6 +516,20 @@
 >8:15:
 >9:):
 >10:*60:
+>1:repeat:
+>2:3:
+>3:(:
+>4:x:
+>5:):
+>1:repeat:
+>2:3:
+>3:(:
+>4:echo:
+>5:foo:
+>6:;:
+>7:echo:
+>8:bar:
+>9:):
 
 
   line=$'A line with # someone\'s comment\nanother line # (1 more\nanother one'