From owner-freebsd-questions Fri Jun 28 20:20:51 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 6064F37B400 for ; Fri, 28 Jun 2002 20:20:49 -0700 (PDT) Received: from ren.sasknow.com (ren.sasknow.com [207.195.92.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65AA343E06 for ; Fri, 28 Jun 2002 20:20:48 -0700 (PDT) (envelope-from ryan@sasknow.com) Received: from localhost (ryan@localhost) by ren.sasknow.com (8.11.6/8.11.6) with ESMTP id g5T3Kjv69571; Fri, 28 Jun 2002 21:20:46 -0600 (CST) (envelope-from ryan@sasknow.com) Date: Fri, 28 Jun 2002 21:20:45 -0600 (CST) From: Ryan Thompson To: Andrei Cojocaru Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How do I get /bin/sh back? In-Reply-To: <004d01c21f12$e4eb1840$0200a8c0@twothousand> Message-ID: <20020628211716.J68180-100000@ren.sasknow.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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