X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 	tests=BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE:  Re: Changing HOME for PERL
Date: Thu, 27 Aug 2009 11:01:29 -0400
Message-ID: <CC93624851A47D42AFD22FB06BCD2D9A0234BBF8@CORPUSMX80B.corp.emc.com>
In-Reply-To: <h766kg$359$2@ger.gmane.org>
References:  <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7@CORPUSMX80B.corp.emc.com> <4A959537.7020900@bopp.net> <CC93624851A47D42AFD22FB06BCD2D9A0234B90D@CORPUSMX80B.corp.emc.com> <4A95AA6A.9010909@bopp.net> <CC93624851A47D42AFD22FB06BCD2D9A0234BB33@CORPUSMX80B.corp.emc.com> <4A9697B2.6050101@bopp.net> <CC93624851A47D42AFD22FB06BCD2D9A0234BBCD@CORPUSMX80B.corp.emc.com> <h766kg$359$2@ger.gmane.org>
From: <Dexter_Michael@emc.com>
To: <Andrew@DeFaria.com>, <cygwin@cygwin.com>
X-EMM-EM: Active
X-IsSubscribed: yes
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

Hi Andrew,

It seems my Cygwin has attached itself to the PERL on my C drive and not
the cygwin Perl.   How do I change that?  Also debugger seemed to work
too.

dextem@USENDEXTEML1C /usr/bin
$ which perl
/cygdrive/c/PERL/BIN/perl

dextem@USENDEXTEML1C /usr/bin
$ which Perl
/cygdrive/c/PERL/BIN/Perl

dextem@USENDEXTEML1C /usr/bin
$ perl -de 1

Loading DB routines from perl5db.pl version 1.28
Editor support available.

Enter h or `h h' for help, or `perldoc perldebug' for more help.

main::(-e:1):   1
  DB<1> q

-----Original Message-----
From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On Behalf
Of Andrew DeFaria
Sent: Thursday, August 27, 2009 10:53 AM
To: cygwin@cygwin.com
Subject: Re: Changing HOME for PERL

Dexter_Michael@emc.com wrote:
> Before I go and end this thread can you tell me if the Perl.exe I have

> in Cygwin looks correct?
>
> I can cd /usr/bin and the Perl there is:
>
> dextem@USENDEXTEML1C /usr/bin
> $ ls -la Perl.exe
> -rwxrwxrw-+ 1 dextem mkgroup-l-d 34304 Jul 19 2007 Perl.exe
>
> I am not seeing the 'x' for execute however and maybe this is the
issue?
This is odd. You do know that Unix, thus Cygwin, implements a case=20
sensitive file system (in most cases) and that Perl.exe is not the same=20
as perl.exe. I've never seen a Perl.exe in Cygwin and alas I have no=20
more Windows machines at home to test on.

Given the above I do see an "x" - actually two of them - one for owner=20
and one for group. You are the owner (dextem) so you have execute=20
permissions. (BTW: the mkgroup thing is trying to tell you to run=20
mkgroup > /etc/group).

Aside from reporting your particulars as described in=20
http://cygwin.com/problems.html, it would be interesting to show the=20
output of "which perl" and try a "perl -de 1" to start up Perl in it's=20
debugger from the command line. If that works then the shebang line=20
should work. If the shebang line is not working then I would thing "perl

-de 1" would also not work and may output enlightening stuff.
--=20
Andrew DeFaria <http://defaria.com>
Now they show you how detergents take out bloodstains. I think if you've

got a T-shirt with a bloodstains all over it, maybe laundry isn't your=20
biggest problem. Maybe you should get rid of the body before you do the=20
wash.


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



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

