rename dir with dashes in name
I recently had to unzip a mail archive and one of the users had a mail folder called:
---------Archive
They obviously put all the dashes to move it to the top of some tree, or maybe to make it stand out more. Regardless, I cannot get into it now:
[joe@mail1 inbox]# cd --------Archive
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]
[joe@mail1 inbox]# cd '--------Archive'/
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]
[joe@mail1 inbox]# cd "--------Archive"/
-bash: cd: --: invalid option
cd: usage: cd [-L|-P] [dir]
Notice that single quotes and double quotes yield the same result. Other operations (rm mv) result in the same. Any suggestions?
|