delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/17/11:33:06

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
User-Agent: Mutt/1.4i Hamster-Fr/2.0.1.10
Date: Tue, 17 Dec 2002 17:16:49 +0100
From: Luc Hermitte <hermitte AT free DOT fr>
To: Matt Armstrong <matt AT lickey DOT com>
Cc: cygwin AT cygwin DOT com
Subject: [ANN] Re: cyg-wrapper.sh
Message-ID: <20021217161649.GA90409669@ORLYN>
References: <20021206013757 DOT GA976927 AT ORLYN> <87adjd3k45 DOT fsf AT squeaker DOT lickey DOT com> <20021212225044 DOT GA42218223 AT ORLYN> <874r9dv6yf DOT fsf AT squeaker DOT lickey DOT com>
Mime-Version: 1.0
In-Reply-To: <874r9dv6yf.fsf@squeaker.lickey.com>

* On Mon, Dec 16, 2002 at 05:12:56PM -0700, Matt Armstrong <matt AT lickey DOT com> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019