Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: BUG: globbing
- X-seq: zsh-workers 7626
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: Re: BUG: globbing
- Date: Thu, 02 Sep 1999 10:27:46 +0200
- In-reply-to: "Sven Wischnowsky"'s message of "Thu, 02 Sep 1999 09:26:48 DFT." <199909020726.JAA13875@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Sven Wischnowsky wrote:
>
> See:
>
> (...) ./zsh -f
> beta% mkdir foo; cd foo; touch 'a~'
> beta% setopt extendedglob
> beta% echo *~
> zsh: bad pattern: *~
illogical
--- Src/pattern.c~ Wed Sep 1 14:54:58 1999
+++ Src/pattern.c Thu Sep 2 10:22:55 1999
@@ -601,8 +601,8 @@
*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) &&
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx> Tel: +39 050 844536
WWW: http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy
Messages sorted by:
Reverse Date,
Date,
Thread,
Author