[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] 'error' in cut.awk
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] 'error' in cut.awk |
Date: |
Thu, 16 May 2013 11:29:28 +0300 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Hi. On further review, I've concluded that you are correct and it's a bug.
I will push the change to the repo shortly.
Thanks!
Arnold
> Date: Sat, 11 May 2013 14:21:41 +0100
> From: david ward <address@hidden>
> To: bug-gawk <address@hidden>
> Subject: [bug-gawk] 'error' in cut.awk
>
> gawk 4.0.2
> manual 4.0.2 and in examples with distribution
> In the last block , for the first if should this not be index($0,FS)= =0
> not index($0,FS) !=0
> Test case
> The\train\tinSpain\tstays\ton\tthe\tplain
> The#cat#sat#on#the#mat
> The\tcat\sat\ton\tthe\tmat
> with !=
> igawk -f wc.ack -- -s -f 2-4 cut-test
> no output
> with ==
> rain\tin\tspain
> cat\tsat\tmat