Bug 14381 - busybox awk '$2 == var' can fail to give only lines with given search string
Summary: busybox awk '$2 == var' can fail to give only lines with given search string
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: unspecified
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-25 11:44 UTC by ricercar
Modified: 2022-01-08 21:44 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
.config (28.09 KB, application/octet-stream)
2021-11-25 11:44 UTC, ricercar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ricercar 2021-11-25 11:44:57 UTC
Created attachment 9161 [details]
.config

Version:1.34.1
Expected: this code to only output second line, but it outputs both lines:

> printf "8 0091\n9 0133\n"|~/busybox-1.34.1/busybox awk '$2 == 0133'
Comment 1 ricercar 2021-11-25 15:46:05 UTC
I'm on Alpine Linux btw, which uses musl.
Comment 2 Denys Vlasenko 2022-01-08 21:44:29 UTC
Fixed in git.