delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/03/28/11:14:00

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Wed, 28 Mar 2001 16:06:39 +0000
From: "malcolm.boekhoff" <malcolm DOT boekhoff AT actfs DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: Space in PATH replaced with :?!
Message-ID: <20010328160639.A415@BOEKHOFF_M>
References: <3AC20668 DOT 3A5A485 AT uab DOT ericsson DOT se>
Mime-Version: 1.0
In-Reply-To: <3AC20668.3A5A485@uab.ericsson.se>; from Johan.Niklasson@uab.ericsson.se on Wed, Mar 28, 2001 at 05:42:32PM +0200

I don't know whether this is any good, but I take MS VC out of the path in my scripts like this:

PATH=`echo $PATH | tr : \\\\n | tr [A-Z] [a-z] | sed "/program files/d" | tr \\\\n :`; export PATH

This removes all the paths with "program files" in them from my PATH.

On 2001-03-28 17:42:32, Johan Niklasson wrote:
> Hi!
> 
> On NT4 sp 4, cygwin 1.1.8
> I have a problem with my path getting distorted by tr and sed.
> I do not want to change my path to the old DOS-form~2
> 
> I wonder if there is some setting I have wrong, or do I simply have to
> live with this problem, as suggested by the FAQ?
> 
> My path shall look like this:
> 
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program
> Files/ESOE/Microsoft Visual Studio/Common/MSDev98/Bin:/Program
> Files/ESOE/Microsoft Visual Studio/VC60/bin.....
> 
> But after issuing this command in a tcsh 
> set path = `echo $PATH | tr : '\n' | grep -v "LM_"`
> 
> it looks like:
> 
> /bin:cygwin/usr/include:.:/usr/bin:/usr/lib:/Winnt/System32/:/Program:Files/ESOE/Microsoft:Visual:Studio/Common/MSDev98/Bin:/Program:Files/ESOE/Microsoft:Visual:Studio/VC60/bin.....
> 
> which gives me problems to use VS compiler.
>  
> Some of the setting I have is:
> CYGWIN=tty ntea ntsec
> TERM=ansi
> TERMCAP=C:\etc\termcap
> 
> If anyone has a solution this problem I'd be most grateful.
> 
> Best regards
> Johan Niklasson
> --
> 
> --
> Want to unsubscribe from this list?
> Check out: http://cygwin.com/ml/#unsubscribe-simple

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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