Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Aug 2001 11:01:27 -0400
From:      "Andy Myers" <andy@acmyers.com>
To:        "Dan Nelson" <dnelson@emsphone.com>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Re: bash in /usr/local/bin?
Message-ID:  <008a01c12276$7f29dda0$15fea8c0@heineken>
References:  <3B74D2CD.7D1C21E8@hway.net> <20010811094642.A19872@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Could you point me to a FAQ on how to statically link the shell?

Thanks much.
Andy Myers
Orlando, FL USA


----- Original Message ----- 
From: "Dan Nelson" <dnelson@emsphone.com>
To: "Jason Vervlied" <jvervlied@hway.net>
Cc: <freebsd-questions@FreeBSD.ORG>
Sent: Saturday, August 11, 2001 10:46 AM
Subject: Re: bash in /usr/local/bin?


> In the last episode (Aug 11), Jason Vervlied said:
> > Is there a reason why the bash shell is kept in /usr/local/bin. I
> > would personally prefer to use it for my root shell, but if I
> > remember right, root needs to have something that is in /bin (I could
> > be wrong). If I do need a shell located in /bin for root would it
> > break anything if I moved bash from /usr/local/bin to /bin (yes I
> > know I woudl have to update /etc/shells)?
> 
> You can leave it in /usr/local/bin;  I have zsh as my root shell and
> leave it in /u/l/b with no problems.  You might be thinking of
> single-user mode requirements, but when you boot single-user it asks
> you what shell you want (defaulting to /bin/sh) no matter what the root
> account is set up as.
> 
> What is important, though, is that you statically-link your shell. 
> That way, if you have problems (say with libc.so), there's a better
> chance that your shell works.  You also get a 10-20% speed bonus with
> static linking.
> 
> -- 
> Dan Nelson
> dnelson@emsphone.com
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
> 
> 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?008a01c12276$7f29dda0$15fea8c0>