delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/29/19:52:31

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <001201ca88cc$e118b840$a34a28c0$@calgacus.com>
References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com>
Date: Wed, 30 Dec 2009 02:52:17 +0200
Message-ID: <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545@mail.gmail.com>
Subject: Re: Bash v4.0 does not respect $PATH
From: Csaba Raduly <rcsaba AT gmail DOT com>
To: cygwin AT cygwin DOT com, Neil DOT Mowbray AT calgacus DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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. =A0Using 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.


--=20
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019