Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Mar 1st, 2005, 3:50 PM   #1
noleander
Newbie
 
Join Date: Mar 2005
Posts: 5
Rep Power: 0 noleander is on a distinguished road
How cd to directory with space in name (Windows)?

I'm running a PC with Windows XP. I've been a Unix person for 20 years, but now find myself having to work on Windows :-( Fortunately, I found bash, so I installed win-bash on my computer (version 0.4.1, dated last month). I am not using bash with CygWin ... just bash by itself.

QUESTION: How do I use the bash "cd" command to change to a directory whose name has a space in it? For example, here is what I've tried (they all fail):

cd C:\Program Files
cd "C:\Program Files"
declare pf="C:\Program Files"; cd $pf [after setting cdable_vars]
... and so on ....

Thanks in advance for any help,
neal
noleander is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 1:30 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC