delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/09/28/18:20:38

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Date: Tue, 28 Sep 2004 18:20:21 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
Subject: Re: "which" command does not expand "~" in path (base-files update needed)
In-Reply-To: <20040928215346.GC2242@trixie.casa.cgf.cx>
Message-ID: <Pine.GSO.4.61.0409281819410.4220@slinky.cs.nyu.edu>
References: <NUTMEGCtgx8VUkRacUt0000013f AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <NUTMEGyMp69YDqSkcJs00000140 AT NUTMEG DOT CAM DOT ARTIMI DOT COM> <20040928194018 DOT GR26145 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT CYG DOT 4 DOT 58 DOT 0409281439000 DOT 2292 AT fordpc DOT vss DOT fsi DOT com> <20040928194740 DOT GT26145 AT trixie DOT casa DOT cgf DOT cx> <Pine DOT GSO DOT 4 DOT 61 DOT 0409281546390 DOT 4220 AT slinky DOT cs DOT nyu DOT edu> <20040928215346 DOT GC2242 AT trixie DOT casa DOT cgf DOT cx>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

On Tue, 28 Sep 2004, Christopher Faylor wrote:

> On Tue, Sep 28, 2004 at 03:48:12PM -0400, Igor Pechtchanski wrote:
> >On Tue, 28 Sep 2004, Christopher Faylor wrote:
> >
> >> On Tue, Sep 28, 2004 at 02:43:38PM -0500, Brian Ford wrote:
> >> >On Tue, 28 Sep 2004, Christopher Faylor wrote:
> >> >
> >> >> Of course there is a simple solution: lose the quotes.  AFAICT, they
> >> >> aren't needed.
> >> >
> >> >IMHO, they are.  Windows programs often put directories containing spaces
> >> >in the system path.  ex:
> >> >
> >> >/cygdrive/c/Program Files/ATI Technologies/ATI Control Panel
> >>
> >> Try the above with a PATH that contains spaces.  Spaces are preserved.
> >
> >They are in this case, but won't be in general.  E.g., try
> >
> >PATH=~/bin:$PATH which ls
>
> This works fine no matter where I put the directory with spaces in it.
>
> Regardless, I don't see any reason to turn this thread into an
> exposition on what does or doesn't work with variables that contain
> spaces.  Dropping the quotes from the original example will just cause
> everything to work correctly everywhere.
>
> John Morrison, would you mind doing this, please?

I stand corrected.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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