Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: behaviour of "for (( exp1; exp2; exp3 )); do COMMANDS; done"
References: <002901c32427$2e1553e0$78d96f83@pomello>
	<PHENJGDFMJPEBOBLGEMOKENMCBAA.peter.oosterlynck@oracle.com>
	<ocj6dvc16hc7e702hhe1dktohpm1306oi6@4ax.com>
	<20030527120718.GA22030@convex.org.uk>
	<eq29dvgfdunpptfj4ak084g2lfa22as6m1@4ax.com>
	<m3brxn1f9w.fsf@ate.maierh>
	<77h9dvo3rjbopg45hi1ec65igvfv6i2lkg@4ax.com>
From: Harald.Maier.BW@t-online.de (Harald Maier)
Reply-To: Harald Maier <maierh@myself.com>
Date: Thu, 29 May 2003 11:32:23 +0200
In-Reply-To: <77h9dvo3rjbopg45hi1ec65igvfv6i2lkg@4ax.com> (Sam Edge's
 message of "Wed, 28 May 2003 15:22:36 +0100")
Message-ID: <m3fzmyayjc.fsf@ate.maierh>
User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Sender: 320041125923-0001@t-dialin.net


Sam Edge <sam.edgeZZZ@lineone.net> writes:

> Harald Maier <maierh@myself.com> wrote:
>
>> > (OT) Does anyone know if any of the common shells, when they see
>> > "#!/bin/xxxx" at the front of a script, try a $PATH search for an
>> > "xxxx" executable if they can't find "/bin/xxxx"? This would seem like
>> > a good idea to me.
>> Some people are using the env program to use the PATH environment:
>> #! /usr/bin/env perl
>> BEGIN { $^W = 1 }
>
> Erm ... doesn't this just duplicate the problem? How can you guarantee
> that "env" is always in /usr/bin?
>
> It's also pretty inefficient, isn't it?

It gives you the freedom to start different interpreters with the same
script. E.g. perl-5.6 or perl-5.8. This might be interesting for
testing purposes. What are you looking for?

Harald


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

