comm applet is broken
John Spencer
maillist-busybox at barfooze.de
Wed Apr 25 17:04:15 UTC 2012
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
it seems toybox got a decent comm impl recently (
http://landley.net/hg/toybox/rev/feb909b2e6aa )
since that's BSD, it could be copied to busybox...
--JS
More information about the busybox
mailing list