I have an external program that generates directories with strings that are negative integers. I am trying to use basic shell commands including cd
and ls
with this directory, for example:
cd -78059735
Understandably, this fails because this looks like command line options starting with -7.
-bash: cd: -7: invalid option
Similarly, these variations also fail:
cd "-78059735"
cd "\-78059735"
cd '-78059735'
cd '\-78059735'
cd \-78059735
How do I interact with this troublesome directory through the shell?