X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.9 required=5.0 tests=AWL,BAYES_00,SARE_RECV_SPAM_NAME2 X-Spam-Check-By: sourceware.org From: To: "'Csaba Raduly'" , References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com> <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545 AT mail DOT gmail DOT com> In-Reply-To: <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545@mail.gmail.com> Subject: RE: Bash v4.0 does not respect $PATH Date: Wed, 30 Dec 2009 21:27:56 +0800 Message-ID: <001901ca8953$e6654d90$b32fe8b0$@calgacus.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Yes I'm certain. Below is a log of the following script #--------------- script $ echo "bash version =3D ${BASH_VERSINFO[0]}" $ for i in $(echo $PATH | sed -r -e "s/:/ /g"); do echo $i; done $ which perl $ perl --version $ /bin/bash $ echo "bash version =3D ${BASH_VERSINFO[0]}" $ for i in $(echo $PATH | sed -r -e "s/:/ /g"); do echo $i; done $ which perl $ perl --version $ exit $ echo "bash version =3D ${BASH_VERSINFO[0]}" $ for i in $(echo $PATH | sed -r -e "s/:/ /g"); do echo $i; done $ which perl $ perl --version #-------------- output bash version =3D 4 /opt/site/bin /opt/ms-vs-10.0/VC/bin /opt/perl/bin /usr/local/bin /bin /usr/bin /work/solon/neilmowbray/alexandra/basic/Asc/finis/bin /opt/java/groovy-1.5.6/bin /windows/Microsoft.NET/Framework/v3.5 /opt/ms-windows-sdk/v6.1/bin /opt/ms-windows-dbg-tools /opt/ms-vs-10.0/Common7/Tools /opt/ms-vs-10.0/Common7/IDE /opt/ms-vs-10.0/Common7/Tools/bin /opt/java/jdk1.6.0_17/bin /opt/java/jdk1.6.0_17/jre/bin /opt/java/scala-2.7.6.final/bin /opt/java/maven-2.2.1/bin /windows/system32 /windows /windows/System32/Wbem =2E /opt/perl/bin/perl #-- from which ActiveSate perl This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int (with 12 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. erl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. bash version =3D 3 /opt/site/bin /opt/ms-vs-10.0/VC/bin /opt/perl/bin /usr/local/bin /bin /usr/bin /work/solon/neilmowbray/alexandra/basic/Asc/finis/bin /opt/java/groovy-1.5.6/bin /windows/Microsoft.NET/Framework/v3.5 /opt/ms-windows-sdk/v6.1/bin /opt/ms-windows-dbg-tools /opt/ms-vs-10.0/Common7/Tools /opt/ms-vs-10.0/Common7/IDE /opt/ms-vs-10.0/Common7/Tools/bin /opt/java/jdk1.6.0_17/bin /opt/java/jdk1.6.0_17/jre/bin /opt/java/scala-2.7.6.final/bin /opt/java/maven-2.2.1/bin /windows/system32 /windows /windows/System32/Wbem =2E /opt/perl/bin/perl #-- which agains This is perl, v5.10.1 built for MSWin32-x86-multi-thread #-- ActiveState perl this time (with 2 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Binary build 1006 [291086] provided by ActiveState http://www.ActiveState.com Built Aug 24 2009 13:48:26 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. bash version =3D 4 /opt/site/bin /opt/ms-vs-10.0/VC/bin /opt/perl/bin /usr/local/bin /bin /usr/bin /work/solon/neilmowbray/alexandra/basic/Asc/finis/bin /opt/java/groovy-1.5.6/bin /windows/Microsoft.NET/Framework/v3.5 /opt/ms-windows-sdk/v6.1/bin /opt/ms-windows-dbg-tools /opt/ms-vs-10.0/Common7/Tools /opt/ms-vs-10.0/Common7/IDE /opt/ms-vs-10.0/Common7/Tools/bin /opt/java/jdk1.6.0_17/bin /opt/java/jdk1.6.0_17/jre/bin /opt/java/scala-2.7.6.final/bin /opt/java/maven-2.2.1/bin /windows/system32 /windows /windows/System32/Wbem =2E /opt/perl/bin/perl This is perl, v5.10.1 (*) built for i686-cygwin-thread-multi-64int (with 12 registered patches, see perl -V for more detail) Copyright 1987-2009, Larry Wall Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using "man perl" or "perldoc perl". If you have access to the Internet, point your browser at http://www.perl.org/, the Perl Home Page. #----------------- end -----Original Message----- From: Csaba Raduly [mailto:rcsaba AT gmail DOT com]=20 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 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, 'which' says= =20 > I should get ActiveState perl, but actual execution gives cygwin perl=20 > 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