From: Han Boetes Date: Sun, 10 Apr 2005 17:53:01 +0000 Subject: Re: [klibc] not everybody uses bash Message-Id: <20050410175323.GB22814@boetes.org> List-Id: References: <20050408170525.GU15412@boetes.org> In-Reply-To: <20050408170525.GU15412@boetes.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org H. Peter Anvin wrote: > Han Boetes wrote: > > If people don't _have_ bash as a shell it won't work at all. > > > > Every shell I know has ``type foo'' and return something like > > ``foo is /usr/bin/foo'' > > > > "something like" isn't very good. Variations all resulted in the last argument being the full path to the executable. And I've seen variations, so something like is appropriate. > Anyway, I already reimplemented the path search in Perl in > 1.0.6, eliminating the need for the shell to do that job. ``#!/usr/bin/env perl'' works in most cases. For the gcc, ld and strip you can use CC ?= cc, etc. since in that case the path does resolve the binary name. Indeed, that is also a solution. Thanks for helping us poor non-bash users :-) # Han -- Lbh unir whfg ivbyngrq gur Qvtvgny Zvyyraavhz Pbclevtug Npg ol oernxvat gur cebgrpgvba bs pbclevtugrq zngrevny. Vs lbh ner abg n pvgvmra be erfvqrag bs gur HFN, lbh evfx orvat vzcevfbarq naq uryq jvgubhg onvy sbe hc gb gjb jrrxf hcba ragel gb gur HFN (c) Copyright 2001 by Hartmann Schaffer (signature only) ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel