[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: perl wants csh



Mark Eichin writes:
> 
> > I am curious about why tcsh is 3X the size of csh. Is it not linking with
> > the shared readline? I suspect this is a library problem.
> 
> 1) tcsh doesn't use readline.
> 	a. I'm not sure readline gives enough hooks anyway, esp. for
> 	   things like command-sensitive completion.
> 	b. since tcsh is BSD-style, not GPL, it would entail a major
> 	   change to the license.
> 2) tcsh has a *lot* of added features over csh.
> 3) tcsh has a *lot* of bugfixes relative to csh.
> 
> Even so, it wouldn't hurt to double check the compilation and make
> sure it isn't built with debugging or something like that.

It's not.

Anyway lets compare bash and tcsh for a sec.

[toaster:/home/andrew/debian/tcsh/tcsh-6.06] dir /usr/bin/tcsh /bin/bash
-rwxr-xr-x   1 root     root       233316 Mar  9 12:08 /bin/bash
-rwxr-xr-x   1 root     root       247488 Mar  8 01:04 /usr/bin/tcsh

[toaster:/home/andrew/debian/tcsh/tcsh-6.06] ldd /usr/bin/tcsh /bin/bash
/usr/bin/tcsh:
        libncurses.so.3.0 => /lib/libncurses.so.3.0
        libc.so.5 => /lib/libc.so.5.2.18
/bin/bash:
        libreadline.so.2.0 => /lib/libreadline.so.2.0
        libncurses.so.3.0 => /lib/libncurses.so.3.0
        libc.so.5 => /lib/libc.so.5.2.18

So bash is only 14k smaller and it uses shared readline.

If you remove all the nice options from bash you probably can make it
3 times smaller too :)

Andrew

-- 
Dehydration - 34%, Recollection of previous evening - 2%, embarrassment
factor - 91%.  Advise repair schedule:- off line for 36 hours, re-boot
startup disk, and replace head - wow, what a night!
                -- Kryten in Red Dwarf `The Last Day'

Andrew Howell		   		      howellaa@cs.curtin.edu.au 
Perth, Western Australia	     andrew@it.com.au andrew@debian.org



Reply to: