From owner-freebsd-questions Thu Aug 30 19:47: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from topaz.mdcc.cx (topaz.mdcc.cx [212.204.230.141]) by hub.freebsd.org (Postfix) with ESMTP id BD39937B401 for ; Thu, 30 Aug 2001 19:47:05 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: from k7.mavetju.org (topaz.mdcc.cx [212.204.230.141]) by topaz.mdcc.cx (Postfix) with ESMTP id 0C79F2B70B; Fri, 31 Aug 2001 04:17:07 +0200 (CEST) Received: by k7.mavetju.org (Postfix, from userid 1001) id D3F4F91; Fri, 31 Aug 2001 12:16:57 +1000 (EST) Date: Fri, 31 Aug 2001 12:16:57 +1000 From: Edwin Groothuis To: Trent Nelson Cc: freebsd-questions@FreeBSD.org Subject: Re: Linux compatibility problem. Message-ID: <20010831121657.S29422@k7.mavetju.org> Mail-Followup-To: Edwin Groothuis , Trent Nelson , freebsd-questions@FreeBSD.org References: <20010831095244.N1562@freebsd06.udt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010831095244.N1562@freebsd06.udt>; from nelsont@wa.switch.aust.com on Fri, Aug 31, 2001 at 09:52:44AM +0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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