Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: 3.1.5++/3.0.6 Re: Parameter substitution bug
- X-seq: zsh-workers 6168
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: PATCH: 3.1.5++/3.0.6 Re: Parameter substitution bug
- Date: Fri, 30 Apr 1999 02:58:24 -0700
- In-reply-to: <9904300814.AA46597@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <9904300814.AA46597@xxxxxxxxxxxxxxxxx>
On Apr 30, 10:14am, Peter Stephenson wrote:
} Subject: PATCH: 3.1.5++/3.0.6 Re: Parameter substitution bug
}
} This should apply to 3.0.6 as well.
It didn't, because 3.0.x doesn't handle '[' and ']' the same way. Is
the following a correct patch, or is more extensive surgery required?
Index: Src/glob.c
===================================================================
--- glob.c 1999/04/28 05:21:34 1.1.1.5.2.3
+++ glob.c 1999/04/30 09:56:42
@@ -2203,16 +2203,14 @@
*t = Inang;
*s = Outang;
break;
- case '^':
- case '#':
- case '~':
- if (unset(EXTENDEDGLOB))
- break;
case '(':
case '|':
case ')':
if (isset(SHGLOB))
break;
+ case '^':
+ case '#':
+ case '~':
case '*':
case '?':
for (t = ztokens; *t; t++)
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author