Mail Archives: cygwin/2009/12/30/08:43:28
=20
> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com=20
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of=20
> Neil DOT Mowbray AT calgacus DOT com
> Sent: Wednesday, December 30, 2009 8:38
> To: 'Csaba Raduly'; cygwin AT cygwin DOT com
> Subject: RE: Bash v4.0 does not respect $PATH
>=20
> As requested the output from perl -e "print $^X;"
>=20
> Bash 3 =3D> c:\opt\perl\bin\perl.exe
>=20
> Bash 4 =3D> /usr/bin/perl
>=20
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=20
> than /opt/perl/bin/perl
>=20
> -----Original Message-----
> From: Csaba Raduly [mailto:rcsaba AT gmail DOT com]
> Sent: 30 December 2009 08:52
> To: cygwin AT cygwin DOT com; Neil DOT Mowbray AT calgacus DOT com
> Subject: Re: Bash v4.0 does not respect $PATH
>=20
> 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=20
> > under cygwin and installed it in /usr/local/bin.
> >
> > I have ActiveState perl installed in /opt/perl which preceeds=20
> > /usr/local/bin:/bin:/usr/bin on my path. =A0Using bash 4.0,=20
> 'which' says=20
> > I should get ActiveState perl, but actual execution gives=20
> cygwin perl=20
> > in /bin
>=20
> Are you sure PATH is the same in bash 3 and 4? You only=20
> showed the PATH from bash 4.
> Just out of curiosity, what does
>=20
> perl -e 'print $^X'
>=20
> print in those two situations? Also, try running
>=20
> for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done
>=20
> in both shells.
>=20
Thanks
--
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
- -
- Jason Pyeron PD Inc. http://www.pdinc.us -
- Principal Consultant 10 West 24th Street #100 -
- +1 (443) 269-1555 x333 Baltimore, Maryland 21218 -
- -
-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-
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
- Raw text -