Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
Subject: Re: [ANN] Re: cyg-wrapper.sh
References: <20021206013757.GA976927@ORLYN>
	<87adjd3k45.fsf@squeaker.lickey.com> <20021212225044.GA42218223@ORLYN>
From: Matt Armstrong <matt@lickey.com>
Date: Mon, 16 Dec 2002 17:12:56 -0700
In-Reply-To: <20021212225044.GA42218223@ORLYN> (Luc Hermitte's message of
 "Thu, 12 Dec 2002 23:50:44 +0100")
Message-ID: <874r9dv6yf.fsf@squeaker.lickey.com>
User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2
 (i386-debian-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Virus-Scanned: by AMaViS snapshot-20020300

Luc Hermitte <hermitte@free.fr> writes:

> Hello Matt,
>
> * On Tue, Dec 10, 2002 at 09:38:02AM -0700, Matt Armstrong
> * <matt@lickey.com> wrote:
>> Luc, you might consider adding an option to unset the PWD environment
>> variable (or convert it to a Windows path).
>
> That's done. I haven't done any test with perforce, so, let me know.
>
> The two new options are:
>     --cyg-PWD-clear   : to unset PWD 
>     --cyg-PWD-convert : to convert PWD to its DOS (short) form.
>
> I was considering to handle other environment variables, but I
> didn't see any good candidate -- ie. environment variables specific
> to bash or cygwin that win32 native applications may also use.

SHELL.

Today I discovered the NT port of emacs uses "SHELL" if set, so it
ends up getting its shell set to /usr/bin/zsh.  Emacs looks for
c:\usr\bin\zsh.exe, but it is really c:\cygwin\usr\bin\zsh.exe.

The solution was to clear the SHELL env var, since I didn't want emacs
using my cygwin shell.

HOME is also probably a good idea to convert into DOS form.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

