diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 09:08:44 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-02 09:08:44 +0000 |
commit | b3257a4708b1c8713b90b2ce2a8cb90977ef17a4 (patch) | |
tree | 32b11dda0943551facfb2a465eeae9c0d1e79c6f /Src/pattern.c | |
parent | 5cdc4938bdfef17d778686ca39c6736306241c53 (diff) | |
download | zsh-b3257a4708b1c8713b90b2ce2a8cb90977ef17a4.tar.gz zsh-b3257a4708b1c8713b90b2ce2a8cb90977ef17a4.tar.xz zsh-b3257a4708b1c8713b90b2ce2a8cb90977ef17a4.zip |
zsh-workers/7626
Diffstat (limited to 'Src/pattern.c')
-rw-r--r-- | Src/pattern.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/pattern.c b/Src/pattern.c index bfc9102a5..975ecc888 100644 --- a/Src/pattern.c +++ b/Src/pattern.c @@ -601,8 +601,8 @@ patcompbranch(int *flagp) *flagp = P_PURESTR; starter = chain = 0; - while (!memchr(patendseg, *patparse, patendseglen) && - (*patparse != Tilde || + while (!memchr(patendseg, *patparse, patendseglen) || + (*patparse == Tilde && memchr(patendseg, patparse[1], patendseglen))) { if (isset(EXTENDEDGLOB) && ((!isset(SHGLOB) && |