delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/02/24/10:06:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=BgLUy+
mme+JWuydBGgD4qeVKP/jquJcsbO7I9Q/c1V9Fe2wFsq8ZaDFRiamRUheu+LMDyH
bxnJCkv0678/zZspcZRi+T8gWSf/OH9fX2YWUV79N5FdcLwkMkOU0jN5J7aHsnIm
HDi0KCsxVfbqfaPGK2J18HubGNoULq5rl0zf4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=t0QyFicSDYD2
8xUPgEZou0ScRAA=; b=iNTUmcyxV8rcYhuWGFeAMUT30sjkbMvJ9sHwSzIFZTA6
d/pltVn63+AgjD572NtFpftSS9lwrU6tCKdWSF35xDxD3JZlPynqOQpiqSEaWVIr
DVUWrZk+AvuNFiF5HJ2o2Yx8hKowadpdl3PgHxvOt7GjwZrI/T7/ZhTvUR0Y/p4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <530B5FEF.4080604@redhat.com>
Date: Mon, 24 Feb 2014 08:06:23 -0700
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Change Directory
References: <530A75DA DOT 9040106 AT mail DOT com> <530A78F0 DOT 2080302 AT tiscali DOT co DOT uk>
In-Reply-To: <530A78F0.2080302@tiscali.co.uk>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes

--mdT6AuO416meTsEtp7wXCMqSMHAgTo5fa
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 02/23/2014 03:40 PM, David Stacey wrote:
> On 23/02/14 22:27, Todd Poole wrote:
>> Getting confused on something. From bash terminal I can change
>> directory like so:
>>
>> $ cd /c/directoryname
>>
>> But if the directory has multi words it does not recognize the directory:
>>
>> $ cd /c/my directory name
>>
>> Is there a way to get cygwin to recognize multiple names in a directory?
>=20
> Either surround the whole path in quotes, or use a backslash character
> '\' before each space:
>=20
>     cd "/c/my directory name"
>     cd /c/my\ directory\ name

Or use zsh instead of bash (zsh auto-tries concatenating multi-argument
names into a single-argument directory containing spaces), or write a
bash function for cd that tries 'command cd "$*"' when $# > 1.

--=20
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--mdT6AuO416meTsEtp7wXCMqSMHAgTo5fa
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBCAAGBQJTC1/vAAoJEKeha0olJ0NqR0AH/iIqb3Ijc/GreMDCHQZCKJei
B1503J3I6H1ZGMqhHd1jEgnwN267/L2oax1T6YcDPiNwxDNi1km27YhhcdI72SLE
uV/hGyLmGL17zRQ6Nhus1ojqffhR7jwFZOfavfG2bivEb+QFFA/OU9P1Rjem3VJu
m0MYIc5CnLSB1X3gJjFe1/Nyoeg2nbwyjFT/64UPLb+ssaIXQS1AZpMKLT1UxQLT
WQvXCqvZ1MmDGaH0noXNCM4ZeSjluZi1fOALq3+pcoZWG7KquYfJ2cr3pcNfrxP1
jRTevniX7wpfrjf+Rsx68nwt2UoydV17vXRpKgPzs8OaBC2eAnPj046RVuq6Ac4=
=d+bD
-----END PGP SIGNATURE-----

--mdT6AuO416meTsEtp7wXCMqSMHAgTo5fa--

- Raw text -


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