diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2014-06-02 12:57:23 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2014-06-02 14:32:51 +0100 |
commit | 06a4913245b3f862e7343b37ee1fc268b4f8d6f5 (patch) | |
tree | dc3eeddf95e06fc6f72c1c959b8810e9f8d5ad61 /Test/D02glob.ztst | |
parent | f5ad1ccbd6dc6230f0344635791db3fd11966a3a (diff) | |
download | zsh-06a4913245b3f862e7343b37ee1fc268b4f8d6f5.tar.gz zsh-06a4913245b3f862e7343b37ee1fc268b4f8d6f5.tar.xz zsh-06a4913245b3f862e7343b37ee1fc268b4f8d6f5.zip |
users/18870: fix glob scanner insert counting check.
Was causing problems with globs in paths with (Y) glob qualifier
Diffstat (limited to 'Test/D02glob.ztst')
-rw-r--r-- | Test/D02glob.ztst | 5 |
1 files changed, 5 insertions, 0 deletions
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 |