|
From: | Christopher Durant |
Subject: | Re: [bug-gawk] Index function problem |
Date: | Sat, 11 May 2013 09:19:16 +0100 |
Hi.
It turns out that Brian Kernighan's awk makes a regexp constant as
the 2nd argument of index() be a fatal error. So I have done that too.
And, I decided to put it in for the upcoming release. :-)
Arnold
> Date: Sun, 28 Apr 2013 10:19:56 +0100
> Subject: Re: [bug-gawk] Index function problem
> From: Christopher Durant <address@hidden>
> To: Aharon Robbins <address@hidden>
> Cc: address@hidden
>
> Dear Arnold
>
> Many thanks
>
> Christopher
>
> On 28 April 2013 08:38, Aharon Robbins <address@hidden> wrote:
>
> > Hi. I'm catching up on old mail.
> >
> > > Date: Sun, 21 Apr 2013 08:06:33 +0100
> > > From: Christopher Durant <address@hidden>
> > > To: address@hidden
> > > Subject: [bug-gawk] Index function problem
> > >
> > > I notice that if you use a regular _expression_ as the second parameter in
> > an
> > > index call e.g. index ($0, /[A-Z]/); it is allowed but gives
> > unpredictable
> > > results. Perhaps this usage should be flagged as an error.
> > >
> > > Kind regards
> > >
> > > Christopher Durant
> >
> > Thanks. The next major release is imminent, and the code is essentially
> > frozen. But I've made myself a note to look into this for afterwards,
> > either as a hard coded warning or as a lint error.
> >
> > Thanks,
> >
> > Arnold
[Prev in Thread] | Current Thread | [Next in Thread] |