bug-gawk
[Top][All Lists]
Advanced

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

Re: [bug-gawk] Assigning RegExp Variables on the Command Line


From: Stephane Chazelas
Subject: Re: [bug-gawk] Assigning RegExp Variables on the Command Line
Date: Mon, 7 Oct 2019 18:54:08 +0100
User-agent: NeoMutt/20171215

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




reply via email to

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