about summary refs log tree commit diff
path: root/Test
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2010-02-09 17:47:02 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2010-02-09 17:47:02 +0000
commitf4f0becb633709741253f0b9677fdde60ae87faf (patch)
tree66974ba12f74f1762e0ce461cf725a80f5533d4b /Test
parenta13752e2cb20906cae5ced873639b25164f7c85f (diff)
downloadzsh-f4f0becb633709741253f0b9677fdde60ae87faf.tar.gz
zsh-f4f0becb633709741253f0b9677fdde60ae87faf.tar.xz
zsh-f4f0becb633709741253f0b9677fdde60ae87faf.zip
27694: add P glob qualifier for prepending
Diffstat (limited to 'Test')
-rw-r--r--Test/D02glob.ztst41
1 files changed, 41 insertions, 0 deletions
diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst
index 74f933842..84453ee5c 100644
--- a/Test/D02glob.ztst
+++ b/Test/D02glob.ztst
@@ -343,6 +343,47 @@
 0:Exclusions with complicated path specifications
 >glob.tmp/dir1 glob.tmp/dir2 glob.tmp/dir4
 
+ print -l -- glob.tmp/*(P:-f:)
+0:Prepending words to each argument
+>-f
+>glob.tmp/a
+>-f
+>glob.tmp/b
+>-f
+>glob.tmp/c
+>-f
+>glob.tmp/dir1
+>-f
+>glob.tmp/dir2
+>-f
+>glob.tmp/dir3
+>-f
+>glob.tmp/dir4
+
+ print -l -- glob.tmp/*(P:one word:P:another word:)
+0:Prepending two words to each argument
+>one word
+>another word
+>glob.tmp/a
+>one word
+>another word
+>glob.tmp/b
+>one word
+>another word
+>glob.tmp/c
+>one word
+>another word
+>glob.tmp/dir1
+>one word
+>another word
+>glob.tmp/dir2
+>one word
+>another word
+>glob.tmp/dir3
+>one word
+>another word
+>glob.tmp/dir4
+
  [[ "" = "" ]] && echo OK
 0:Empty strings
 >OK