delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/05/02:15:37

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
From: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: Bash puzzle: Spaces, environment variables and tab completion
Date: Thu, 5 Dec 2002 01:12:36 -0600
Message-ID: <NCBBIHCHBLCMLBLOBONKEECADJAA.g.r.vansickle@worldnet.att.net>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
In-reply-to: <20021205060104.39630.qmail@web13602.mail.yahoo.com>
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal

> Although I appreciate Gary's encouragement, going
> around bash instead of struggling with it, does
> seem the better solution.

Well now, I never said you couldn't cheat a *little* ;-).

>  There were several
> variations on the same theme on this bypass
> solution.  Thanks to Ehud, Michael and Igor.
> Basically either symbolically link or mount a (non
> spaced) file to the problem path.  Then I can
> define an environment variable to that link/mount.
>

Don't forget about cygpath's ability to transfigure spaced pathnames into
spaceless ones:

PF=$(cygpath -u $(cygpath -d '/cygdrive/c/Program Files'))

This will tab-complete $PF/whatever, "cd $PF", "ls $PF/G<tab complete>" just
fine, etc etc.  The only downside is that you end up looking at those ugly (but
spaceless) short, squiggleized names.

How's that for pounding, Randall? ;-)

--
Gary R. Van Sickle
Brewer.  Patriot.


--
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