[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gawk] Postdecrementing $NF
From: |
Aharon Robbins |
Subject: |
Re: [bug-gawk] Postdecrementing $NF |
Date: |
Sun, 08 Sep 2013 19:51:33 +0200 |
User-agent: |
Heirloom mailx 12.5 6/20/10 |
Greetings. Re this:
> Date: Sun, 08 Sep 2013 02:56:52 +0200
> From: Adam Zieli??ski <address@hidden>
> To: address@hidden
> Subject: [bug-gawk] Postdecrementing $NF
>
> $NF-- (or even $(NF--) ) - doesn't seem to work as intended.
>
> Instead of giving me a field value and decrementing FN after that, it
> converts field value to number and then decrements it.
>
> Doing the same via variable set to NF works perfectly.
Please specify the version of gawk you are using (from gawk --version)
and on what system you're running it.
Please include a small test program that demonstrates the bug. (I think I
see the bug but would like to know how you produced it.)
Thanks,
Arnold