Bug 14871

Summary: sort: `sort -s -u -k 2' didn't remove duplicate lines
Product: Busybox Reporter: Zhang Boyang <zhangboyang.id>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Zhang Boyang 2022-06-25 14:13:03 UTC
Hi,

Please run `LANG=C sort -s -u -k 2' with following input data:
z b
a b
z a
a a

The output of busybox's sort is:
z a
a a
z b
a b

The expected output (from GNU sort) is:
z a
z b
Comment 1 Zhang Boyang 2022-06-25 14:30:31 UTC
(In reply to Zhang Boyang from comment #0)
Comment 2 Denys Vlasenko 2022-07-29 14:40:29 UTC
Fixed in git