From f4f0becb633709741253f0b9677fdde60ae87faf Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 9 Feb 2010 17:47:02 +0000 Subject: 27694: add P glob qualifier for prepending --- Test/D02glob.ztst | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'Test') 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 -- cgit 1.4.1