[BusyBox] [PATCH] New comm applet

Rob Landley rob at landley.net
Sat Apr 2 15:57:10 MST 2005


On Saturday 02 April 2005 05:55 am, Rob Sullivan wrote:
> Hi,
> from reading this mailing list, I discovered that comm was needed to
> build Perl, and that no version was currently available in Busybox.
> I've written a small version based on comm in the GNU coreutils, with
> all features implemented.
> However, reading busybox/docs/new-applet-HOWTO.txt, it's not entirely
> clear how to create the diff file required, so what I've done is
> create a patch file for each changed file, and bzip2ed all of them
> together. It should be fairly easy to apply, but if a resend is needed
> then that doesn't present a problem.
> Also, would a small less implementation be useful? If so, I'll be glad
> to start work on one.
>
> Thanks,
> Rob

Cool, this is an item off my to-do list.

In general, you can just cat multiple "diff -u" files together into one big 
file (assuming they're all diffed relative to the same directory), but the 
easy way is to have an "original" tree and your modified tree next to each 
other, and go:

diff -ru busybox busybox-new

And let the recursive search handle it.

And yes, less is cool.  I'd personally prefer one that didn't mess with $TERM 
or curses and just belted out ANSI sequences (a >20 year old standard 
everything out there understands)...

Thanks,

Rob


More information about the busybox mailing list