From owner-freebsd-questions Sat Aug 11 8: 1:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mackeson.acmyers.com (ubr-27.202.89.unionpark.cfl.rr.com [24.27.202.89]) by hub.freebsd.org (Postfix) with ESMTP id 8D2DE37B401 for ; Sat, 11 Aug 2001 08:01:36 -0700 (PDT) (envelope-from andy@acmyers.com) Received: from heineken (heineken.acmyers.com [192.168.254.21]) by mackeson.acmyers.com (8.11.1/8.11.1) with SMTP id f7BF1Tt04487; Sat, 11 Aug 2001 11:01:29 -0400 (EDT) (envelope-from andy@acmyers.com) Message-ID: <008a01c12276$7f29dda0$15fea8c0@heineken> From: "Andy Myers" To: "Dan Nelson" Cc: References: <3B74D2CD.7D1C21E8@hway.net> <20010811094642.A19872@dan.emsphone.com> Subject: Re: bash in /usr/local/bin? Date: Sat, 11 Aug 2001 11:01:27 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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" To: "Jason Vervlied" Cc: 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