www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-2.2 required=5.0 tests=BAYES_00,SARE_RECV_SPAM_NAME2 |
X-Spam-Check-By: | sourceware.org |
From: | <Neil DOT Mowbray AT calgacus DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Bash v4.0 does not respect $PATH |
Date: | Wed, 30 Dec 2009 05:21:24 +0800 |
Message-ID: | <001201ca88cc$e118b840$a34a28c0$@calgacus.com> |
MIME-Version: | 1.0 |
x-cr-hashedpuzzle: | ABYp AONh BEy0 BSCE BySG CaUo CbRc DuIv FBOt F+RM Hw9N H2mb IZPS IdwW KbEj LK9N;1;YwB5AGcAdwBpAG4AQABjAHkAZwB3AGkAbgAuAGMAbwBtAA==;Sosha1_v1;7;{5D15A638-7D2C-436C-B590-1C56E2DFBCF5};bgBlAGkAbAAuAG0AbwB3AGIAcgBhAHkAQABjAGEAbABnAGEAYwB1AHMALgBjAG8AbQA=;Tue, 29 Dec 2009 21:21:22 GMT;QgBhAHMAaAAgAHYANAAuADAAIABkAG8AZQBzACAAbgBvAHQAIAByAGUAcwBwAGUAYwB0ACAAJABQAEEAVABIAA== |
x-cr-puzzleid: | {5D15A638-7D2C-436C-B590-1C56E2DFBCF5} |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.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 |
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 $ for i in $(echo $PATH | sed -r -e "s/:/ /g"); do echo $i; done /opt/site/bin /opt/ms-vs-10.0/VC/bin /opt/perl/bin /usr/local/bin /bin /usr/bin ... $ which perl /opt/perl/bin/perl But $ perl --version This is perl, v5.10.1 (*) built for i686-cygwin-thread-muli-64int (with 12 registered patches, see perl -V for more detail) ... If I switch to bash 3.x in /bin things work as expected. $ /bin/bash $ which perl /opt/perl/bin/perl $ perl --version This is perl, v5.10.1 built for MSWin32-x86-multi-thread ... How can I fix bash 4.0 path problems? Regards, Neil -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |