Date: Fri, 31 Aug 2001 12:16:57 +1000 From: Edwin Groothuis <edwin@mavetju.org> To: Trent Nelson <nelsont@wa.switch.aust.com> Cc: freebsd-questions@FreeBSD.org Subject: Re: Linux compatibility problem. Message-ID: <20010831121657.S29422@k7.mavetju.org> In-Reply-To: <20010831095244.N1562@freebsd06.udt>; from nelsont@wa.switch.aust.com on Fri, Aug 31, 2001 at 09:52:44AM %2B0800 References: <20010831095244.N1562@freebsd06.udt>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 31, 2001 at 09:52:44AM +0800, Trent Nelson wrote: > If I've invoked /compat/linux/bin/bash and attempt to run a shell > script that has "#!/bin/sh" as its first line, the FreeBSD /bin/sh > seems to get called as the interpreter - as opposed to > /compat/linux/bin/sh. Is this correct? Yups. Shell scripts are not linux-programs :-) > This is breaking a Linux installation script I'm working with as its > doing a `uname -r' and getting "4.3-RELEASE" instead of "2.2.14". > I'm invoking the /compat/linux/bin/bash shell in this instance and > working with that. Put /usr/compat/linux/bin as first line in your PATH and this should solve it. Same for /usr/compat/linux/sbin, usr/bin etc. [~] edwin@k7>export PATH=/usr/compat/linux/bin:$PATH [~] edwin@k7>uname -a Linux k7.mavetju.org 2.2.12 FreeBSD 4.2-RELEASE #7: Sun Aug 19 21:49:05 EST 2001 edwin@k i386 unknown [~] edwin@k7>uname -r 2.2.12 Edwin -- Edwin Groothuis | Personal website: http://www.MavEtJu.org edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: ------------------+ http://www.FatalDimensions.org/ 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?20010831121657.S29422>