[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Assigning RegExp Variables on the Command Line
From: |
arnold |
Subject: |
Re: [bug-gawk] Assigning RegExp Variables on the Command Line |
Date: |
Sun, 13 Oct 2019 12:32:25 -0600 |
User-agent: |
Heirloom mailx 12.5 7/5/10 |
Stephane Chazelas <address@hidden> wrote:
> 2019-10-06 21:20:38 +0100, Stephane Chazelas:
> [...]
> > I note that -F @/./ doesn't do the same as -v FS=@/./
> [...]
>
> $ echo ab.c | ./gawk 'BEGIN{FS = @/./}; {print typeof(FS), $1, NF}'
> regexp ab 2
>
> is also confusing. I'd expect to see
>
> regexp 5
>
> if FS is a regexp.
>
> --
> Stephane
>
This is now fixed in git. The same issue applied to RS, also fixed.
Thanks for the report.
Arnold