Date: Sat, 28 Aug 1999 20:22:26 +0200 From: Neil Blakey-Milner <nbm@mithrandr.moria.org> To: Ben Smithurst <ben@scientia.demon.co.uk> Cc: big-sky@altavista.net, freebsd-questions@FreeBSD.ORG Subject: Re: roots shell Message-ID: <19990828202226.A31577@mithrandr.moria.org> In-Reply-To: <19990828155720.D28779@lithium.scientia.demon.co.uk>; from Ben Smithurst on Sat, Aug 28, 1999 at 03:57:20PM %2B0100 References: <19990819222133.B12658@lithium.scientia.demon.co.uk> <000301bef156$a12cc5a0$0201010a@cmr.net> <19990828155720.D28779@lithium.scientia.demon.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat 1999-08-28 (15:57), Ben Smithurst wrote: > Mark Einreinhof wrote: > > > "/usr/local/bin/bash --version >/dev/null 2>&1 && exec /usr/local/bin/bash" > > Sorry, my mistake: this should have the "--login" flag, i.e. > > /usr/local/bin/bash --version >/dev/null 2>&1 && \ > exec /usr/local/bin/bash --login Try this: ldd /usr/local/bin/bash && exec /usr/local/bin/bash --login (nbm@mithrandr) /usr/home/nbm> env LD_PRELOAD=foo ldd /usr/local/bin/bash /usr/libexec/ld-elf.so.1: Shared object "foo" not found (nbm@mithrandr) /usr/home/nbm> echo $? 1 (nbm@mithrandr) /usr/home/nbm> ldd /usr/local/bin/bash /usr/local/bin/bash: libtermcap.so.2 => /usr/lib/libtermcap.so.2 (0x280b4000) libc.so.3 => /usr/lib/libc.so.3 (0x280b9000) (nbm@mithrandr) /usr/home/nbm> echo $? 0 I don't know if that's "allowed", but it seems to work here. Neil -- Neil Blakey-Milner nbm@rucus.ru.ac.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990828202226.A31577>