This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Bash v4.0 does not respect $PATH
On Wed, Dec 30, 2009 at 3:47 PM, Neil.Mowbray wrote:
http://www.cygwin.com/acronyms/#TOFU
Please don't do that.
> Sorry I missing the last question. ?To answer it: yes perl really is visible
> as /opt/perl/bin/perl which bash fails to execute it as the third line
> below shows. ?In this shell bash execute cygwin perl on line 5.
>
> ls: cannot access /opt/site/bin/perl: No such file or directory
> ls: cannot access /opt/ms-vs-10.0/VC/bin/perl: No such file or directory
> -rwx------+ 1 SYSTEM SYSTEM 45137 2009-08-25 05:49 /opt/perl/bin/perl
> ls: cannot access /usr/local/bin/perl: No such file or directory
> -rwxr-xr-x 2 neilmowbray Administrators 34883 2009-12-20 00:20 /bin/perl
> -rwxr-xr-x 2 neilmowbray Administrators 34883 2009-12-20 00:20 /usr/bin/perl
>
>
> -----Original Message-----
> From: Csaba Raduly
> Sent: 30 December 2009 08:52
> Also, try running
>
> for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done
-rwx------+ 1 SYSTEM SYSTEM 45137 2009-08-25 05:49 /opt/perl/bin/perl
I think the problem is that only SYSTEM can run /opt/perl/bin/perl
You may need to chmod a+x /opt/perl/bin/perl
or chown neilmowbray /opt/perl/bin/perl
Hope this helps,
Csaba
--
Life is complex, with real and imaginary parts
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple