[oclug] bash CDPATH variable has me stumped
Brian's Linux Box
b_mckee at myrealbox.com
Thu Jun 24 17:34:35 EDT 2004
On Thursday, June 24, 2004, at 12:16 PM, Rod Giffin wrote:
> Brians Linux Box said:
>> I'm confused. I'd like to use the CDPATH variable to make it quicker
>> to get at certain folders.
>>
>>> ==> echo $CDPATH
>>> :/Volumes:~/Documents/Inventory\ Pricing\ Related\ Prjct/In\
>>> Progress:~/Documents
>>
>> it works for the ~/Documents entry...
>>> ==> cd MISC
>>> /Users/bmckee/Documents/MISC
>>
>> but it doesn't for the nested In Progress entry
>>> ==> cd UBP
>>> bash: cd: UBP: No such file or directory
>>
>> the entry sure looks right though
>>> ==> cd ~/Documents/Inventory\ Pricing\ Related\ Prjct/In\
>>> Progress/UBP
>>> ==> pwd
>>> /Users/bmckee/Documents/Inventory Pricing Related Prjct/In
>>> Progress/UBP
>
> I'm not sure if it's the cause in your situation, or if this will help,
> but I had to enclose directory and file names with spaces in them in
> quotes.
>
> Escaping the spaces did not work.
>
> Rod.
>
THANK YOU!
CDPATH=$CDPATH:/Volumes:~/Documents/"Inventory Pricing Related
Prjct"/"In Progress":~/Documents
did the trick
Brian
More information about the OCLUG
mailing list