From owner-freebsd-questions Thu Aug 30 20:37: 4 2001 Delivered-To: freebsd-questions@freebsd.org Received: from primus.vsservices.com (primus.vsservices.com [63.66.136.75]) by hub.freebsd.org (Postfix) with ESMTP id 2DA7037B401 for ; Thu, 30 Aug 2001 20:36:59 -0700 (PDT) (envelope-from gclarkii@vsservices.com) Received: from prime.vsservices.com (conr-adsl-dhcp-28-213.txucom.net [209.34.28.213]) by primus.vsservices.com (8.11.3/8.11.3) with SMTP id f7V3YfI38765; Thu, 30 Aug 2001 20:34:41 -0700 (PDT) (envelope-from gclarkii@vsservices.com) Content-Type: text/plain; charset="iso-8859-1" From: GB Clark II To: Edwin Groothuis Subject: Re: Linux compatibility problem. Date: Thu, 30 Aug 2001 22:34:43 -0500 X-Mailer: KMail [version 1.2] References: <20010831095244.N1562@freebsd06.udt> <20010831121657.S29422@k7.mavetju.org> In-Reply-To: <20010831121657.S29422@k7.mavetju.org> Cc: freebsd-questions@freebsd.org MIME-Version: 1.0 Message-Id: <01083022344306.44450@prime.vsservices.com> Content-Transfer-Encoding: 8bit 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 Thursday 30 August 2001 21:16, you wrote: > 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 :-) Nope. When you run the linux shell you get the linux paths from root. Create a shell script to run uname -a and then run it from inside of the linux shell, you'll get the linux uname just fine. Or you should.... > > 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 You should not need to do this! I get 2.2.12 WITHOUT having the linux compat in the my path. Looks like something is broken somewhere...:( This is with linux_base-6.1 from ports. GB -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message