[Bug 12981] awk: seems to try to falsely expand strings

bugzilla at busybox.net bugzilla at busybox.net
Fri Jun 5 19:50:07 UTC 2020


https://bugs.busybox.net/show_bug.cgi?id=12981

--- Comment #3 from Steffen Nurpmeso <steffen at sdaoden.eu> ---
The nawk bug is already fixed, heh. Luckily i saved away the script, another
version did not reveal the crash there.  The final version is also entirely
different.  I mean hey, i came to bed at half past five in the morning, ok.
But yes i indeed can.  Here mawk, mawk-debian, nawk, gawk:

 #?0|kent:tmp$ </dev/null awk -v i=1 'BEGIN {print "hey fish " ++i "."}'
 hey fish 2.

Compared to

 #?0|sdaoden:steffen$ </dev/null awk -v i=1 'BEGIN {print "hey fish " ++i "."}'
 01.

Any why has it to be minimal, i never found a test series for busybox (i looked
out for one years ago)?
Just asking..

I have asked Aharon Robbins for that "++i should be (++i)" of yours.
He kindly proved me wrong regarding my boolean use of getline() not getline()>0
already, i had to fix that in several places.  If he responds to support my
prefix/postfix in/decrement has highest priority .. i'll be back :-)

A nice weekend everybody i (who hates web interfaces like this, i wished i
could simply respond via email) wish from Germany,
Ciao,

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the busybox-cvs mailing list