On 4 July 2013 00:08, Chris Down <ch...@chrisdown.name> wrote: > Greetings. > > On 3 July 2013 17:52, Stephan van Ingen <stephanvanin...@gmail.com> wrote: >> stephanbosal@in-laptop3:~/Downloads/Win8$ *cd --SMSBOOT-sources-/* >> bash: cd: --: invalid option >> cd: usage: cd [-L|[-P [-e]]] [dir] >> stephanbosal@in-laptop3:~/Downloads/Win8$ *cd \-\-SMSBOOT-sources-/* >> bash: cd: --: invalid option > > This is not a bug, this is the way that POSIX option parsing works. > Backslashes are not the way to solve it, because it's not that `-` is > being interpreted as a special character, it's about the way that the > option parser works. See > > The correct way is to do this: > > cd -- --SMSBOOT-sources > > Or: > > cd ./--SMSBOOT-sources
Bah, missed the link. http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html