On Wed, Oct 08, 2014 at 07:32:26PM +0400, Antony Pavlov wrote: > On Wed, 8 Oct 2014 16:24:15 +0200 > Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> wrote: > > > This command compares two files. It does not show the differences, > > it only returns successfully if both files are identical and with > > an error if they differ. > > Here are my two comments: > > 1. there is the 'cmp' command for simple comparing two files from Unix cmdline. > Can we use 'cmp' name instead of 'diff'? Yes, good idea. 'cmp' seems a better name. I changed it. > > 2. we already can use > memcmp -s FILE1 -d FILE2 0 0 > for comparing files :) I know. Admittedly I'm working on stuff where I need the diff_file (now compare_file) C function. The cmp command is merely a vehicle to not have the compare_file function unused in the tree until this work is done ;) Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox