1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-06 23:36:03 +02:00

21317: fix bug where recursive glob within e qualifier would hang the shell

This commit is contained in:
Oliver Kiddle 2005-06-21 08:58:43 +00:00
parent 3773851948
commit 6245d3e32f
3 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-21 Oliver Kiddle <opk@zsh.org>
* 21317: Src/glob.c, Test/D02glob.ztst: fix bug where recursive
glob within e qualifier would hang the shell
2005-06-20 Bart Schaefer <schaefer@zsh.org>
* unposted: Functions/Misc/zargs: support -I and -L as synonyms

View File

@ -180,7 +180,6 @@ static struct globdata curglobdata;
memcpy(&(N), &curglobdata, sizeof(struct globdata)); \
(N).gd_pathpos = pathpos; \
(N).gd_pathbuf = pathbuf; \
(N).gd_pathbufsz = 0; \
(N).gd_glob_pre = glob_pre; \
(N).gd_glob_suf = glob_suf; \
pathbuf = NULL; \

View File

@ -280,6 +280,10 @@
0:Globbing used recursively (inside e glob qualifier)
>a a b b c c
print glob.tmp/*/*(e:'reply=( glob.tmp/**/*([1]) )'::t)
0:Recursive globbing used recursively (inside e glob qualifier)
>a a a a a a a
print glob.tmp/**/(:h)
0:Head modifier
>. glob.tmp glob.tmp glob.tmp glob.tmp glob.tmp/dir3