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

Re: root's shell



On Thu, 3 Jul 1997, Ira Abramov wrote:

> On Thu, 3 Jul 1997, Harvey J. Stein wrote:
> 
> > Ira Abramov writes:
> > > is csh (tcsh) on linux systems staticly linked? how can one tell?
> > 
> > ldd <file> will tell what dynamic libraries <file> uses.  If nothing
> > is listed, then it's statically linked.
> 
> oooops. I knew that command and forgot it... :)
> 
> well, it seems like in Linux it's actually safer to use tcsh then!
> 
> Linux (RedHat):
> 
> [ira@izzy ~]$ ldd /bin/bash
>   libtermcap.so.2 => /lib/libtermcap.so.2.0.8
>   libc.so.5 => /lib/libc.so.5.3.12
> [ira@izzy ~]$ ldd /bin/tcsh
>   libc.so.5 => /lib/libc.so.5.3.12
> 
> (Slackware actually links tcsh to libtermcap too!)
> 
> a Sun Machine:
> 
>  52 /a/ira> ldd /sbin/sh
>         /sbin/sh: statically linked
>  53 /a/ira> ldd /usr/bin/csh
>         -lc.1 => /usr/lib/libc.so.1.9
>         -ldl.1 => /usr/lib/libdl.so.1.0
> 
> should I want to recompile my bash?
> 
Well, I do believe that it's best to have a statically linked /bin/sh.
(bash). You can have /usr/bin/bash linked to shared libs, to save
resources, and /bin/bash statically linked for the root shell.

--Ariel
> 
>    ------------------------------------------------------
>    Ira Abramov                         <ira@interHDL.com>
>    Webmaster @ interHDL Inc. - The HDL Technology Company
>    Tel: (415) 428-4200           4984 El Camino Real #210
>    Fax: (415) 428-4201           Los Altos CA, 94022-1433
> 
> 

   +---------------------------------------------------------+
   | Ariel Biener                                            |
   | e-mail: ariel@post.tau.ac.il        Work ph: 03-6406086 |
   +---------------------------------------------------------+


References: