From owner-freebsd-questions@FreeBSD.ORG Tue Oct 30 21:05:46 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98FC016A41B for ; Tue, 30 Oct 2007 21:05:46 +0000 (UTC) (envelope-from howie@thingy.com) Received: from mail.thingy.com (wotsit.thingy.com [212.21.100.67]) by mx1.freebsd.org (Postfix) with ESMTP id EEE3613C4C4 for ; Tue, 30 Oct 2007 21:05:45 +0000 (UTC) (envelope-from howie@thingy.com) Received: (qmail 47062 invoked by uid 0); 30 Oct 2007 20:39:02 +0000 Received: from unknown (HELO ?192.168.1.56?) (howie@thingy.com@212.21.124.49) by wotsit3.thingy.com with AES256-SHA encrypted SMTP; 30 Oct 2007 20:39:02 +0000 Message-ID: <47279664.1050704@thingy.com> Date: Tue, 30 Oct 2007 20:39:00 +0000 From: Howard Jones User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: "Benjamin M. A'Lee" References: <472647A0.3030009@brookes.ac.uk> <20071030130206.GB1178@gilmour.subvert.org.uk> In-Reply-To: <20071030130206.GB1178@gilmour.subvert.org.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: [freebsd-questions] Dangers of using a non-base shell X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2007 21:05:46 -0000 Benjamin M. A'Lee wrote: > You could possibly also put "bash -l && exit" in your .shrc, which would > exit if bash exited successfully. I haven't tested it, but it should > work. > or 'exec bash -l' which will replace the existing shell with bash in memory, rather than run it from it as a subprocess. I was going to verify that that's the technical explanation, but 'man exec' gets you the utterly useless builtin(1) manpage. The effect is that you only have to type exit once, anyway. Howie