bug-gawk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: patsplit return arrays reversed


From: arnold
Subject: Re: patsplit return arrays reversed
Date: Thu, 19 Aug 2021 13:28:14 -0600
User-agent: Heirloom mailx 12.5 7/5/10

patsplit() is working as designed. Please read up on it
in the manual (NOT the man page, the manual, available online)
and be sure you understand the difference between split()
and patsplit().

Thanks,

Arnold

"Andrew J. Schorr" <aschorr@telemetry-investments.com> wrote:

> On Wed, Aug 18, 2021 at 05:24:08PM -0700, Rob Daasch wrote:
> > To whom it may concern
> > 
> > I rereport a bug for the gawk function patsplit().
> > 
> > The returned arrays are reversed.
>
> If you want them reversed, then just replace "patsplit"
> with "split". Why do you think patsplit is not working
> properly? The regex arg to patsplit tells gawk how to
> match field contents, not how to match separators.
> It looks like it's working correctly to me, but maybe
> it's late and my brain is fried.
>
> Regards,
> Andy



reply via email to

[Prev in Thread] Current Thread [Next in Thread]