Re: cd to dir with dashes
On Sun, Feb 02, 2003 at 06:45:53AM -0800, Bill Moseley wrote:
> 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]
>
How about:
cd ./--SIMPLE-ACCOUNT--
?
-- Mark
Reply to: