www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.8 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: | <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7@CORPUSMX80B.corp.emc.com> |
References: | <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7 AT CORPUSMX80B DOT corp DOT emc DOT com> |
Date: | Wed, 26 Aug 2009 20:30:55 +0100 |
Message-ID: | <416096c60908261230m339918efo989d61f4d2fc2f4d@mail.gmail.com> |
Subject: | Re: Changing HOME for PERL |
From: | Andy Koppe <andy DOT koppe AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
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 |
> I installed Cygwin yesterday and when I run it and look at "pwd" my path > is set to: =C2=A0 /cygdrive/h > > I read the FAQ and when I type "set HOME" from a Windows CLI, it is set > to: > HOME=3DH:\ > > 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: =C2=A0 =C2=A0 =C2=A0...:/cygdrive/h:/bin/bash > and I changed it to: =C2=A0 =C2=A0...:/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. Andy -- 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 |