uniq

Giuseppe Ciotta giuseppe at telvia.it
Thu May 10 07:30:49 PDT 2007


~/busybox-1.5.0$ yes | ./busybox uniq -> no output

~$ yes |  uniq
y

- busybox uniq never prints a line since it waits for the next different
line, which will never be read in this case as input lines are all equals.
- gnu uniq prints a line as it reads it, discarding following lines.

Is there a reason for this discrepancy between gnu uniq and busybox one?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://busybox.net/lists/busybox/attachments/20070510/504aa068/attachment.htm 


More information about the busybox mailing list