Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: 4.1.4: POSIX ranges, supplementary



Sorry.  You'll find that ']' has all kinds of unexpected properties
until you apply this additional patch.

*** Src/glob.c.range2	Wed Jul  8 15:25:05 1998
--- Src/glob.c	Wed Jul  8 18:46:07 1998
***************
*** 2216,2222 ****
  
      /* we made sure in parsecomp() there was a ':' to search for */
      *patptr = strchr(start, ':');
!     len = *patptr++ - start;
  
      if (!strncmp(start, "alpha", len))
  	return isalpha(ch);
--- 2216,2222 ----
  
      /* we made sure in parsecomp() there was a ':' to search for */
      *patptr = strchr(start, ':');
!     len = (*patptr)++ - start;
  
      if (!strncmp(start, "alpha", len))
  	return isalpha(ch);

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 50 844536
WWW:  http://www.ifh.de/~pws/
Gruppo Teorico, Dipartimento di Fisica
Piazza Torricelli 2, 56100 Pisa, Italy



Messages sorted by: Reverse Date, Date, Thread, Author