> -----Original Message----- > From: cygwin-ow...@cygwin.com > [mailto:cygwin-ow...@cygwin.com] On Behalf Of > neil.mowb...@calgacus.com > Sent: Wednesday, December 30, 2009 8:38 > To: 'Csaba Raduly'; cygwin@cygwin.com > Subject: RE: Bash v4.0 does not respect $PATH > > As requested the output from perl -e "print $^X;" > > Bash 3 => c:\opt\perl\bin\perl.exe > > Bash 4 => /usr/bin/perl >
In bash4 can I see, every thing else is a bit noisy for me. $ set && echo && alias && echo && uname -a > As you would expect the program that is actually running. > But again Bash 4 is incorrectly getting /usr/bin/perl rather > than /opt/perl/bin/perl > > -----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. > Thanks -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- - - - Jason Pyeron PD Inc. http://www.pdinc.us - - Principal Consultant 10 West 24th Street #100 - - +1 (443) 269-1555 x333 Baltimore, Maryland 21218 - - - -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- This message is copyright PD Inc, subject to license 20080407P00. -- 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