delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/02/27/14:47:00

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
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 27 Feb 2002 21:06:34 +0200
Message-Id: <200202271906.g1RJ6Yr01357@unix.simonwiesel.co.il>
From: "Ehud Karni" <ehud AT unix DOT simonwiesel DOT co DOT il>
To: j DOT gift AT wanadoo DOT fr
Cc: cygwin AT cygwin DOT com
Subject: Re: Help changing dir with spaces...
In-reply-to: <01de01c1bfb8$16601d90$c31a80d9@palatine> (message from Jonathan
Gift on Wed, 27 Feb 2002 18:56:28 +0100)
Organization: Mivtach-Simon Insurance agencies
Reply-to: ehud AT unix DOT simonwiesel DOT co DOT il
References: <01de01c1bfb8$16601d90$c31a80d9 AT palatine>
X-Mailer: Emacs 21.1.1 rmail (send-msg 1.106)
MIME-Version: 1.0

On Wed, 27 Feb 2002 18:56:28 +0100, Jonathan Gift <j DOT gift AT wanadoo DOT fr> wrote:
> 
> I'm very familiar with Linux and new to Cywin, but one of my first
> priorities is to mobe around the Bash shell. The only really pressing matter
> is how to move to the folders under WXP: C:\Documents and settings
> 
> I can move to C:\Work or C:\tmp but anything with spaces it balks at. Since
> I can't change XP's default, is there a way to get Bash to accept the space?

Bash on Cygwin works exactly as Bash on GNU/Linux. If you are "very
familiar with Linux", you should know that you have several options.
1. You can escape the space by using backslash, i.e. do
       cd /cygdrive/c/Documents\ and\ settings 
2. You can use wildcard - cd /cygdrive/c/Documents*settings        
       or  cd /cygdrive/c/Documents?and?settings 
3. You can quote the full directory name, i.e. do
       cd "/cygdrive/c/Documents and settings"
4. You can use the Bash name completion mechanism -
       type:  cd /cygdrive/c/Documen  and TAB
  play with it and learn how it work.

Ehud.
P.S. I saw Larry's email, but I couldn't resist myself.

-- 
 Ehud Karni           Tel: +972-3-7966-561  /"\
 Mivtach - Simon      Fax: +972-3-7966-667  \ /  ASCII Ribbon Campaign
 Insurance agencies   (USA) voice mail and   X   Against   HTML   Mail
 http://www.mvs.co.il  FAX:  1-815-5509341  / \
 mailto:ehud AT unix DOT simonwiesel DOT co DOT il          Better  Safe  Than  Sorry

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