delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/12/23/20:11:23

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT net>
Subject: Re: newbie question chdir
Date: Fri, 23 Dec 2005 17:11:01 -0800
Lines: 30
Message-ID: <doi77b$q9u$1@sea.gmane.org>
References: <43A634AD DOT 1090406 AT internode DOT com DOT au> <20051219044600 DOT GA19689 AT trixie DOT casa DOT cgf DOT cx> <43A642A8 DOT 3050801 AT internode DOT com DOT au>
Mime-Version: 1.0
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051201 Thunderbird/1.5 Mnenhy/0.7.2.0
In-Reply-To: <43A642A8.3050801@internode.com.au>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Luke Vanderfluit wrote:

 > long saga about windows

Perhaps we're having a terminology problem here.

Are you typing (literally) the string "cd c:\" as the entire input to 
bash? If so, you need to be aware that all Unix-y shells do *escape 
processing* using "\", so you have to double them up if you want to send 
them in literally.

As in

bash-3.00$ cd c:\\
bash-3.00$ pwd
/cygdrive/c
bash-3.00$

Surprise, it works.

Also, you realize that you can use *FORWARD SLASHES* on Windows, don't 
you? It's completely supported at the Win32 API level, so you can even

bash-3.00$ cd c:/
bash-3.00$ pwd
/cygdrive/c
bash-3.00$

Does this solve your problem?



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