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 ls: cannot access /work/solon/neilmowbray/alexandra/basic/Asc/finis/bin/perl: No such file or directory ls: cannot access /opt/java/groovy-1.5.6/bin/perl: No such file or directory ls: cannot access /windows/Microsoft.NET/Framework/v3.5/perl: No such file or directory ls: cannot access /opt/ms-windows-sdk/v6.1/bin/perl: No such file or directory ls: cannot access /opt/ms-windows-dbg-tools/perl: No such file or directory ls: cannot access /opt/ms-vs-10.0/Common7/Tools/perl: No such file or directory ls: cannot access /opt/ms-vs-10.0/Common7/IDE/perl: No such file or directory ls: cannot access /opt/ms-vs-10.0/Common7/Tools/bin/perl: No such file or directory ls: cannot access /opt/java/jdk1.6.0_17/bin/perl: No such file or directory ls: cannot access /opt/java/jdk1.6.0_17/jre/bin/perl: No such file or directory ls: cannot access /opt/java/scala-2.7.6.final/bin/perl: No such file or directory ls: cannot access /opt/java/maven-2.2.1/bin/perl: No such file or directory ls: cannot access /windows/system32/perl: No such file or directory ls: cannot access /windows/perl: No such file or directory ls: cannot access /windows/System32/Wbem/perl: No such file or directory ls: cannot access ./perl: No such file or directory -----Original Message----- From: Csaba Raduly [mailto:rcs...@gmail.com] Sent: 30 December 2009 08:52 To: cygwin@cygwin.com; neil.mowb...@calgacus.com Subject: Re: Bash v4.0 does not respect $PATH On Tue, Dec 29, 2009 at 11:21 PM, Neil Mowbray wrote: > Folks, > > I need associative arrays so I got the bash 4.0 source, compiled it > under cygwin and installed it in /usr/local/bin. > > I have ActiveState perl installed in /opt/perl which preceeds > /usr/local/bin:/bin:/usr/bin on my path. Using bash 4.0, 'which' says > I should get ActiveState perl, but actual execution gives cygwin perl > in /bin Are you sure PATH is the same in bash 3 and 4? You only showed the PATH from bash 4. Just out of curiosity, what does perl -e 'print $^X' print in those two situations? Also, try running for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done in both shells. -- 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