[clue-tech] Questions about $CDPATH

Mike Bean beandaemon at gmail.com
Sun Feb 6 08:51:53 MST 2011


OK, I've been staring at this for a while, I have absolutely no idea what
I'm doing wrong
I was reading about $CDPATH, decided to try to implement it:

Here's my distro:
Linux fozzie 2.6.32-28-generic #55-Ubuntu SMP Mon Jan 10 23:42:43 UTC 2011
x86_64 GNU/Linux

Here's my env file:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/home/mbean/Dropbox/bin/scripts:/usr/bin/python3.1
CDPATH=:~:~/Dropbox:~/Documents:~/Dropbox/bin/dotfiles:~/Dropbox/bin/scripts

Here's the current value of the variable:
mbean at fozzie:~/Dropbox/Documents$ echo $CDPATH
:/home/mbean:/home/mbean/Dropbox:/home/mbean/Documents:/home/mbean/Dropbox/bin/dotfiles:/home/mbean/Dropbox/bin/scripts

Here's the results of testing:
mbean at fozzie:~/Dropbox/Documents$ cd mbean
bash: cd: mbean: No such file or directory
mbean at fozzie:~/Music$ cd Documents
/home/mbean/Documents
mbean at fozzie:~/Music$ cd Dropbox
/home/mbean/Dropbox
mbean at fozzie:~/Music$ cd dotfiles
bash: cd: dotfiles: No such file or directory
mbean at fozzie:~/Music$ cd scripts
bash: cd: scripts: No such file or directory

(and here's the proof that the directories exist and that the permissions
are correct: hopefully I didn't mung up the path)

mbean at fozzie:~/Music$ ls /home/mbean/Dropbox/bin/dotfiles
total 20
drwxr-xr-x 3 mbean mbean 4096 2011-02-06 08:36 .
drwxr-xr-x 4 mbean mbean 4096 2010-11-30 10:45 ..
drwxr-xr-x 2 mbean mbean 4096 2011-02-06 08:43 bash
-rw-r--r-- 1 mbean mbean  155 2011-02-06 07:53 .bashrc
-rw-r--r-- 1 mbean mbean  711 2011-02-06 07:51 .bashrc~

mbean at fozzie:~/Music$ ls /home/mbean/Dropbox/bin/scripts
total 44
drwxr-xr-x 2 mbean mbean 4096 2011-02-06 07:45 .
drwxr-xr-x 4 mbean mbean 4096 2010-11-30 10:45 ..
-rwxr--r-- 1 mbean mbean 1156 2010-11-30 21:16 archivedir.sh
-rwxr--r-- 1 mbean mbean 1640 2010-12-01 10:14 backup.sh
-rwxr--r-- 1 mbean mbean 1434 2010-12-02 22:17 bestcompress1.sh
-rwxr--r-- 1 mbean mbean 1425 2010-12-01 14:04 bestcompress.sh
-rw-r--r-- 1 mbean mbean  329 2011-02-06 06:44 colortest
-rw-r--r-- 1 mbean mbean  329 2011-02-06 07:23 #colortest#
-rw-r--r-- 1 mbean mbean  329 2011-02-06 06:42 colortest~
-rwxr--r-- 1 mbean mbean  824 2011-02-06 06:36 initializeANSI.sh
-rwxr--r-- 1 mbean mbean 1329 2010-11-30 20:10 inpath.sh

All advice is welcome, I'm just confused how the command can have identical
syntax and work for directories under my HOME, but not under my Dropbox.

Thanks all!

Bean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cluedenver.org/pipermail/clue-tech/attachments/20110206/a4ccced8/attachment.html 


More information about the clue-tech mailing list