From owner-freebsd-questions Sat Jun 29 8:58:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9852937B400 for ; Sat, 29 Jun 2002 08:58:48 -0700 (PDT) Received: from mail.empirequest.com (www.empirequest.com [216.126.10.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE4BD43E09 for ; Sat, 29 Jun 2002 08:58:47 -0700 (PDT) (envelope-from spinlock_lists@empirequest.com) Received: (qmail 80396 invoked by uid 89); 29 Jun 2002 15:58:42 -0000 Received: from unknown (HELO twothousand) (spinlock?lists@empirequest.com@192.168.0.2) by www.empirequest.com with SMTP; 29 Jun 2002 15:58:42 -0000 Message-ID: <000a01c21f85$d71c4220$0200a8c0@twothousand> From: "Andrei Cojocaru" To: "Ryan Thompson" Cc: References: <20020628211716.J68180-100000@ren.sasknow.com> Subject: Re: How do I get /bin/sh back? Date: Sat, 29 Jun 2002 09:58:41 -0600 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.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 Thanks, it worked. ---- Andrei Cojocaru spinlock_lists@empirequest.com ----- Original Message ----- From: "Ryan Thompson" To: "Andrei Cojocaru" Cc: Sent: Friday, June 28, 2002 21:20 Subject: Re: How do I get /bin/sh back? > Andrei Cojocaru wrote to freebsd-questions@FreeBSD.ORG: > > > I replaced /bin/sh with bash and made /bin/sh a symbolic link to > > bash. I want to know how to get it back (original /bin/sh that is), > > since the make buildworld won't work without it (That is what port > > do I install?). > > Oops! :-) You should never replace /bin/sh. As you have found out, > doing so breaks some scripts. :-) There are plenty of other better > supported ways to make bash the default multiuser shell on your > system. > > Now, to fix your current problem, you can rebuild /bin/sh from > sources. (I assume you have the userland sources, as you were trying > to do a buildworld). > > # cd /usr/src/bin/sh && make all install > > ...should do the trick. > > Hope this helps, > - Ryan > > -- > Ryan Thompson > > SaskNow Technologies - http://www.sasknow.com > 901 1st Avenue North - Saskatoon, SK - S7K 1Y4 > > Tel: 306-664-3600 Fax: 306-664-3630 Saskatoon > Toll-Free: 877-727-5669 (877-SASKNOW) North America > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message