X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Shankar Unni <shankarunni@netscape.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.1090406@internode.com.au> <20051219044600.GA19689@trixie.casa.cgf.cx> <43A642A8.3050801@internode.com.au>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  7bit
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@cygwin.com; run by ezmlm
Precedence: bulk
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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/

