zsh-workers
 help / color / mirror / code / Atom feed
* BUG: globbing
@ 1999-09-02  7:26 Sven Wischnowsky
  1999-09-02  8:27 ` PATCH: " Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Sven Wischnowsky @ 1999-09-02  7:26 UTC (permalink / raw)
  To: zsh-workers


See:

  (...) ./zsh -f
  beta% mkdir foo; cd foo; touch 'a~'
  beta% setopt extendedglob
  beta% echo *~
  zsh: bad pattern: *~
  beta% cd ..; echo **/*(orig|~)
  zsh: bad pattern: **/*(orig|~)

Same bug, I guess.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* PATCH: Re: BUG: globbing
  1999-09-02  7:26 BUG: globbing Sven Wischnowsky
@ 1999-09-02  8:27 ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 1999-09-02  8:27 UTC (permalink / raw)
  To: zsh-workers

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@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-09-02  9:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-02  7:26 BUG: globbing Sven Wischnowsky
1999-09-02  8:27 ` PATCH: " Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).