X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 	tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A95954A.3010609@cygwin.com>
Date: Wed, 26 Aug 2009 16:04:26 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh@cygwin.com>
Reply-To: cygwin@cygwin.com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Changing HOME for PERL
References: <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7@CORPUSMX80B.corp.emc.com> <416096c60908261230m339918efo989d61f4d2fc2f4d@mail.gmail.com>
In-Reply-To: <416096c60908261230m339918efo989d61f4d2fc2f4d@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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 08/26/2009 03:30 PM, Andy Koppe wrote:
>> I installed Cygwin yesterday and when I run it and look at "pwd" my path
>> is set to:   /cygdrive/h
>>
>> I read the FAQ and when I type "set HOME" from a Windows CLI, it is set
>> to:
>> HOME=H:\
>>
>> I am using Cygwin for PERL.
>>
>> I just took a PERL course and in class Cygwin was configured for:
>> /usr/bin/perl
>>
>> This was perfect because I could make my SheBang look like:
>> #!/usr/bin/perl
>>
>> I would like to do that again with the Cygwin I installed myself
>> yesterday.
>>
>> I did modify /etc/passwd.
>> The last line had:      ...:/cygdrive/h:/bin/bash
>> and I changed it to:    ...:/usr/bin/perl:/bin/bash
>>
>> But when I open a new Cygwin session it remembers the old /cygdrive/h
>
> The HOME variable takes precedence over /etc/passwd, hence you need to
> either unset it or set it to the location you want before invoking
> bash. It's likely set in the System Properties. The exact location
> depends on the Windows version, but it's something like
> Computer->Context Menu->Properties->Advanced->Environment Variables.

Also, the *path* you set in '/etc/passwd' is meant to reference a directory,
not a file (or binary in this case).  '/usr/bin/perl' on my Cygwin 
installation is
a binary.  So I think you're looking for something else (but I really have no
idea what since I couldn't grok the comment "in class Cygwin was configured
for: /usr/bin/perl" and how that relates to your interest in setting your
home directory.

-- 
Larry Hall                                 http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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

