[Bug 15886] awk mishandling first line of input

bugzilla at busybox.net bugzilla at busybox.net
Tue Dec 12 12:23:46 UTC 2023


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

--- Comment #1 from ocbb23b at slowpine.com ---
root at clean2305:~# (echo a; echo b) | awk 'BEGIN {ignore=$1} $2 != 0'
b
root at clean2305:~# (echo a; echo b) | awk 'BEGIN {ignore=$4} $2 != 0'
a
b
root at clean2305:~#


This is another example of the problem.  Note that if we reference $4, then the
initialisation is done right for the first line

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


More information about the busybox-cvs mailing list