From 06a4913245b3f862e7343b37ee1fc268b4f8d6f5 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Mon, 2 Jun 2014 12:57:23 +0000 Subject: users/18870: fix glob scanner insert counting check. Was causing problems with globs in paths with (Y) glob qualifier --- Test/D02glob.ztst | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Test') diff --git a/Test/D02glob.ztst b/Test/D02glob.ztst index d197098b6..9e29de26e 100644 --- a/Test/D02glob.ztst +++ b/Test/D02glob.ztst @@ -546,9 +546,14 @@ (){ print $#@ } glob.tmp/dir*(Y) (){ print $#@ } glob.tmp/file*(NY) (){ [[ $1 = glob.tmp/dir? ]] && echo "(Y) returns a matching filename" } glob.tmp/dir*(Y) + # Can be negated (){ print $@:t } glob.tmp/dir*(Y^Y) + (){ [[ $#@ -eq 1 ]] && print Globs before last path component } glob.tmp/dir?/subdir(NY) + (){ [[ $#@ -eq 0 ]] && print Respects qualifiers } glob.tmp/dir?/subdir(NY.) 0:short-circuit modifier >1 >0 >(Y) returns a matching filename >dir1 dir2 dir3 dir4 +>Globs before last path component +>Respects qualifiers -- cgit 1.4.1