X-Recipient: archive-cygwin@delorie.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: <002101ca8956$aa61f660$ff25e320$@calgacus.com>
References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com> 	 <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545@mail.gmail.com> 	 <002101ca8956$aa61f660$ff25e320$@calgacus.com>
Date: Thu, 31 Dec 2009 13:34:23 +0200
Message-ID: <1ef5a52f0912310334p1b83b997jc3c99f480b71d3d8@mail.gmail.com>
Subject: Re: Bash v4.0 does not respect $PATH
From: Csaba Raduly <rcsaba@gmail.com>
To: Neil.Mowbray@calgacus.com
Cc: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On Wed, Dec 30, 2009 at 3:47 PM,  Neil.Mowbray wrote:

http://www.cygwin.com/acronyms/#TOFU
Please don't do that.

> Sorry I missing the last question. =A0To answer it: yes perl really is vi=
sible
> as /opt/perl/bin/perl which bash fails to execute it as the third line
> below shows. =A0In this shell bash execute cygwin perl on line 5.
>
> ls: cannot access /opt/site/bin/perl: No such file or directory
> ls: cannot access /opt/ms-vs-10.0/VC/bin/perl: No such file or directory
> -rwx------+ 1 SYSTEM SYSTEM 45137 2009-08-25 05:49 /opt/perl/bin/perl
> ls: cannot access /usr/local/bin/perl: No such file or directory
> -rwxr-xr-x 2 neilmowbray Administrators 34883 2009-12-20 00:20 /bin/perl
> -rwxr-xr-x 2 neilmowbray Administrators 34883 2009-12-20 00:20 /usr/bin/p=
erl
>
>
> -----Original Message-----

> From: Csaba Raduly
> Sent: 30 December 2009 08:52
> Also, try running
>
> for i in $(echo $PATH | sed -r -e "s/:/ /g"); do ls -l $i/perl; done

-rwx------+ 1 SYSTEM SYSTEM 45137 2009-08-25 05:49 /opt/perl/bin/perl

I think the problem is that only SYSTEM can run /opt/perl/bin/perl
You may need to      chmod a+x /opt/perl/bin/perl
or     chown neilmowbray /opt/perl/bin/perl

Hope this helps,
Csaba
--=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

