[Bug 15886] New: awk handling first line of input properly

bugzilla at busybox.net bugzilla at busybox.net
Sun Dec 10 16:10:57 UTC 2023


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

            Bug ID: 15886
           Summary: awk handling first line of input properly
           Product: Busybox
           Version: 1.35.x
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
          Assignee: unassigned at busybox.net
          Reporter: ocbb23b at slowpine.com
                CC: busybox-cvs at busybox.net
  Target Milestone: ---

root at clean2305:~# (echo a 1 ; echo b ) | awk '$2 != 0'
a 1
b
root at clean2305:~# (echo a ; echo b) | awk '$2 != 0'
b
root at clean2305:~# (echo a) | awk '$2 != 0'

BusyBox v1.36.1 (2023-10-09 21:45:35 UTC) multi-call binary.
Embedded in OpenWrt 23.05.0

Same problem also seen in 21.02 versions of OpenWrt


I get the correct expected output from Ubuntu gawk and Debian mawk
will at dev:~$ (echo a ; echo b) | awk '$3 != 0'
a
b

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


More information about the busybox-cvs mailing list