X-Recipient: archive-cygwin AT delorie DOT 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: Changing HOME for PERL Date: Wed, 26 Aug 2009 16:37:38 -0400 Message-ID: In-Reply-To: <4A95954A.3010609@cygwin.com> References: <416096c60908261230m339918efo989d61f4d2fc2f4d AT mail DOT gmail DOT com> <4A95954A DOT 3010609 AT cygwin DOT com> From: To: X-EMM-EM: Active X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Hi Larry, Thanks for the response. My reply to Jeremy a moment ago should help clear up what I need as it includes the error I got yesterday and how I made it go away being tied to the SHEBANG line. Thanks, Mike -----Original Message----- From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Larry Hall (Cygwin) Sent: Wednesday, August 26, 2009 4:04 PM To: cygwin AT cygwin DOT com Subject: Re: Changing HOME for PERL 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=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: ...:/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=20 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. --=20 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 -- 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