[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: patsplit return arrays reversed
From: |
Andrew J. Schorr |
Subject: |
Re: patsplit return arrays reversed |
Date: |
Wed, 18 Aug 2021 21:18:10 -0400 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
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