Identifying the OS in a Perl script

Shen ulist at gs1.ubuntuforums.org
Fri Sep 2 11:46:47 UTC 2005


Colin Watson Wrote: 
> On Thu, Sep 01, 2005 at 05:55:33PM -0400, Shen wrote:

> > Colin Watson Wrote: 

> > > Only if /usr/bin/env exists in Cygwin, which I suspect it doesn't
> ...

> > 

> > It is there, c:\cygwin\bin\env.exe, and it works the same.

> 

> But is it accessible as /usr/bin/env? If not, there is no point in

> changing from one non-portable path to another non-portable path.

Cygwin converts it into /usr/bin/env, so if you use #!/usr/bin/env
perl it will run the same. (I just tried it, and it did)


-- 
Shen




More information about the ubuntu-users mailing list