On Friday, December 20, 2002, at 05:21 AM, [EMAIL PROTECTED] wrote:

On Thursday, December 19, 2002, at 11:35 , Ettore Aldrovandi wrote:

On Thu, Dec 19, 2002 at 09:46:10PM -0500, [EMAIL PROTECTED] wrote:

No.  Note the first column (the inode number) and the column
between the permissions and the files' owner (the number of hard
links to the file).  Ettore Aldrovandi explained them in his
mail.

Unfortunately, /usr/bin/[ef]?grep is the same file three times,
taking up three times as much space as should be necessary.  This
Yes, this is indeed puzzling. /usr/bin/grep /usr/bin/[ef]grep are
certainly different files. diff reports them as different, but I
don't know how trustworthy diff is on binary files.
Yikes!  I saw that they were all the same size and *assumed* (my
mistake) that they were all the same file.   And while diff may
or may not be reliable on binary files (in my old school way of
thinking about Unix, it *isn't*), md5sum strongly indicates that
the grep family aren't just copies of each other either:
I made the same assumption.

'diff' recognizes the files as binary, and while I haven't verified this by checking the code, I take the implication that it is doing a byte-by-byte compare.

For general (i.e., byte-by-byte) comparison of files, I use 'cmp', which in this case reports 5 single-byte differences between egrep and fgrep on 10.2.2 and 1 single-byte difference on 10.1.5. Haven't spent the time to figure out where in the file structure the differences are (e.g., symbol table, headers), or what the differences might mean.

The CVS repository holds the project 'grep', which indicates that all three programs are built from the same project, although not from identical source files.

Regards,

Justin

--
Justin C. Walker, Curmudgeon-At-Large *
Institute for General Semantics | It's not whether you win or lose...
| It's whether *I* win or lose.
*--------------------------------------*-------------------------------*



-------------------------------------------------------
This SF.NET email is sponsored by: The Best Geek Holiday Gifts!
Time is running out! Thinkgeek.com has the coolest gifts for
your favorite geek. Let your fingers do the typing. Visit Now.
T H I N K G E E K . C O M http://www.thinkgeek.com/sf/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to