From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23182 invoked by alias); 17 Dec 2002 16:24:05 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23162 invoked from network); 17 Dec 2002 16:24:03 -0000 Received: from unknown (HELO postfix4-2.free.fr) (213.228.0.176) by 209.249.29.67 with SMTP; 17 Dec 2002 16:24:03 -0000 Received: from orlyn (toulouse-2-a7-62-147-38-61.dial.proxad.net [62.147.38.61]) by postfix4-2.free.fr (Postfix) with SMTP id F29D7C13F; Tue, 17 Dec 2002 17:23:50 +0100 (CET) User-Agent: Mutt/1.4i Hamster-Fr/2.0.1.10 Received: from localhost (HELO @) [127.0.0.1] by orlyn (127.0.0.1) with SMTP (Hamster-Fr 2.0 Vr. 2.0.1.10) ; Tue, 17 Dec 2002 17:16:50 +0100 Date: Tue, 17 Dec 2002 08:33:00 -0000 From: Luc Hermitte To: Matt Armstrong Cc: cygwin@cygwin.com Subject: [ANN] Re: cyg-wrapper.sh Message-ID: <20021217161649.GA90409669@ORLYN> References: <20021206013757.GA976927@ORLYN> <87adjd3k45.fsf@squeaker.lickey.com> <20021212225044.GA42218223@ORLYN> <874r9dv6yf.fsf@squeaker.lickey.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <874r9dv6yf.fsf@squeaker.lickey.com> X-SW-Source: 2002-12/txt/msg00899.txt.bz2 * On Mon, Dec 16, 2002 at 05:12:56PM -0700, Matt Armstrong wrote: > > --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. > > The solution was to clear the SHELL env var, since I didn't want emacs > using my cygwin shell. It is possible to alias emacs to: alias emacs='(unset SHELL; cygwrapper.sh path-to-emacs ...)' > HOME is also probably a good idea to convert into DOS form. That's odd. $HOME correctly appear with Vim. Any way, --cyg-PWD-clear and --cyg-PWD-convert have been replaced with: --cyg-env-clear=ENV-VARS and --cyg-env-convert=ENV-VARS. So, you can write now: alias prog='cyg-wrapper.sh path-to-prog --cyg-env-convert=PWD,SHELL --cyg-env-convert=HOME' However, I have a bug: "--cyg-env-convert=HOMEPATH" works fine, "--cyg-env-clear=PWD" works fine too, but "--cyg-env-convert=HOMEPATH" does not have any consequences... As well as "(unset HOMEPATH;gvim)". I guess that HOMEPATH got a special traitment from cygwin or bash. Does list of directories needs to be converted also ? I know PATH appears correctly converted from Vim. Is is the same with the other tools, or is it Vim, as I suspect, that opers the convertion ? -- Luc Hermitte http://hermitte.free.fr/cygwin/ -- 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/