comm applet is broken

Denys Vlasenko vda.linux at googlemail.com
Thu Apr 26 15:55:52 UTC 2012


On Wed, Apr 25, 2012 at 7:04 PM, John Spencer
<maillist-busybox at barfooze.de> wrote:
> it only works if input is pre-sorted and/or same lines happens to be on the
> same linenumber in both files
>
> root:/src$ comm
> BusyBox v1.19.4 (2012-04-25 16:09:00 UTC) multi-call binary.
>
> Usage: comm [-123] FILE1 FILE2
>
> Compare FILE1 with FILE2
>
>        -1      Suppress lines unique to FILE1
>        -2      Suppress lines unique to FILE2
>        -3      Suppress lines common to both files
>
> root:/src$ cat test1.txt
> a
> b
> c
>
> root:/src$ cat test2.txt
> d
> b
> root:/src$ comm test1.txt test2.txt
> a
> b
> c
>
>        d
>        b

comm from GNU coreutils 8.1 does the same.

-- 
vda


More information about the busybox mailing list