www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/31/06:34:35

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: <002101ca8956$aa61f660$ff25e320$@calgacus.com>
References: <001201ca88cc$e118b840$a34a28c0$@calgacus.com> <1ef5a52f0912291652g1f42d60aqe9316639e0a5f545 AT mail DOT gmail DOT 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 AT gmail DOT com>
To: Neil DOT Mowbray AT calgacus DOT com
Cc: cygwin AT cygwin 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 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

- Raw text -


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