delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/24/05:26:05

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
Message-ID: <41F4CD2D.3040005@insightbb.com>
Date: Mon, 24 Jan 2005 05:25:49 -0500
From: Chad J McQuinn <huskerchad AT insightbb DOT com>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: fergus AT bonhard DOT uklinux DOT net
CC: cygwin AT cygwin DOT com
Subject: Re: Moving to the Desktop
X-IsSubscribed: yes

fergus AT bonhard DOT uklinux DOT net wrote:

>What I'm actually after is something like
>
>   ~> cd `cygpath -D`
>
I think it will work with

cd "`cygpath -D`"

That's backticks inside double quotes. Windows makes it easier since (I 
think) quotes are not allowed in filenames. Beyond that, I think a quick 
and dirty procedure is to backslash anything that isn't alphanumeric; if 
it's special, it gets escaped, and if it's not special, then backslash 
doesn't hurt anything.

-Chad

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