[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

cd to dir with dashes



Hum, what's the trick to cd in bash in this case?

moseley@bumby:~/wusage-accounts$ ls
--SIMPLE-ACCOUNT--

moseley@bumby:~/wusage-accounts$ cd --SIMPLE-ACCOUNT--/
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]

moseley@bumby:~/wusage-accounts$ cd '--SIMPLE-ACCOUNT--/'
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]

moseley@bumby:~/wusage-accounts$ cd "--SIMPLE-ACCOUNT--/"
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]

moseley@bumby:~/wusage-accounts$ cd \-\-SIMPLE\-ACCOUNT\-\-  
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]




-- 
Bill Moseley moseley@hank.org



Reply to: