delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/08/26/15:18:17

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
MIME-Version: 1.0
Subject: Changing HOME for PERL
Date: Wed, 26 Aug 2009 15:17:58 -0400
Message-ID: <CC93624851A47D42AFD22FB06BCD2D9A0234B8A7@CORPUSMX80B.corp.emc.com>
From: <Dexter_Michael AT emc DOT com>
To: <cygwin AT cygwin DOT com>
X-EMM-EM: Active
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

Hello,

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.=20=20

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:=09
#!/usr/bin/perl

I would like to do that again with the Cygwin I installed myself
yesterday.

I did modify /etc/passwd.=20=20
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

Could someone help me?  I don't want to have to change my SheBang
everytime I deploy a PERL script to Unix after having created it in
Cygwin on Windows.

Thank you,=20

Michael J. Dexter

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