sh vs. sh5 in ultrix

terryl at sail.LABS.TEK.COM terryl at sail.LABS.TEK.COM
Wed Sep 5 04:16:53 AEST 1990


In article <13289 at hydra.gatech.EDU> gt0178a at prism.gatech.EDU (BURNS,JIM) writes:
>in article <3865 at umbc3.UMBC.EDU>, rouben at math13.math.umbc.edu says:
>> -rwxr-xr-x  1 root     system      45056 Apr  1 12:27 /bin/sh
>> -rwxr-xr-x  2 root     system     163840 Apr  1 09:56 /usr/bin/sh5
>
>Well, that's amusing. Try:
>
>-rwxr-xr-x  1 root        23552 Nov 19  1987 /bin/sh*
>-rwxr-xr-x  1 root        39936 Nov 18  1987 /usr/bin/sh5*


     ls -l is pretty useless on executables. What if one executable had its
symbol table stripped, and the other one didn't????

     Try size(1) instead. It has more meaningful output....

text	data	bss	dec	hex
90112	8192	3112	101416	18c28		/bin/sh.bsd

92176   8528    7652    108356  1a744		/bin/shs.sysv

     And here's the ls -l output:

-r-xr-xr-x   1 bin      root      101216 Jun 20 15:25 /bin/sh.sysv
-rwxr-xr-x   1 root     other     133120 Feb 20  1990 /bin/sh.bsd

     Note that the bsd sh is actually smaller according to size(1), but ls -l
shows it is bigger, due to the symbol table.....



More information about the Comp.unix.shell mailing list