Date: Tue, 30 Oct 2007 20:39:00 +0000 From: Howard Jones <howie@thingy.com> To: "Benjamin M. A'Lee" <bma+lists@subvert.org.uk> Cc: freebsd-questions@freebsd.org Subject: Re: [freebsd-questions] Dangers of using a non-base shell Message-ID: <47279664.1050704@thingy.com> In-Reply-To: <20071030130206.GB1178@gilmour.subvert.org.uk> References: <472647A0.3030009@brookes.ac.uk> <20071030130206.GB1178@gilmour.subvert.org.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47279664.1050704>