newbie question chdir

Shankar Unni shankarunni@netscape.net
Sat Dec 24 01:28:00 GMT 2005


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/



More information about the Cygwin mailing list