behaviour of "for (( exp1; exp2; exp3 )); do COMMANDS; done"

Sam Edge sam.edgeZZZ@lineone.net
Wed May 28 16:11:00 GMT 2003


Harald Maier <maierh@myself.com> wrote in <m3brxn1f9w.fsf@ate.maierh>
in gmane.os.cygwin on Wed, 28 May 2003 13:28:43 +0200:

> > (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?

Ho hum ... off topic thread alert! Mea culpa. ;-)

Regards,
-- 
Sam Edge

--
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/



More information about the Cygwin mailing list