From owner-freebsd-ports@FreeBSD.ORG Thu Jul 26 18:28:15 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3184616A417 for ; Thu, 26 Jul 2007 18:28:15 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.freebsd.org (Postfix) with SMTP id CA9C313C467 for ; Thu, 26 Jul 2007 18:28:14 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 32472 invoked by uid 399); 26 Jul 2007 18:28:14 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTP; 26 Jul 2007 18:28:14 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <46A8E7BC.9040103@FreeBSD.org> Date: Thu, 26 Jul 2007 11:28:12 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: Khaled Hussein References: <46A87CD7.90900@palnet.com> <46A8E619.3050701@FreeBSD.org> In-Reply-To: <46A8E619.3050701@FreeBSD.org> X-Enigmail-Version: 0.95.1 OpenPGP: id=D5B2F0FB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-ports@freebsd.org Subject: Re: Ports upgrade X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jul 2007 18:28:15 -0000 Doug Barton wrote: > The other is to not use bash as your login shell, but rather to use > sh, then have a .profile that starts bash if it's available: > > if [ -x /usr/local/bin/bash ]; then > exec /usr/local/bin/bash --login > fi Hrrm, my actual .profile entry is more complicated than that, and I just realized that I oversimplified it here. What you want to do is also test to make sure that the bash you can find will run: if [ -x /usr/local/bin/bash ]; then if /usr/local/bin/bash --version >/dev/null 2>&1; then exec /usr/local/bin/bash --login fi fi otherwise you're stuck in the same boat by exec'ing something that's going to fail because of the missing library. Sorry for the confusion, Doug -- This .signature sanitized for your protection