Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: RE: Bash puzzle: Spaces, environment variables and tab completion Date: Thu, 5 Dec 2002 01:12:36 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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" 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/