Follow-up Comment #1, bug #25946 (project coreutils): cd -- "- test -"
should also work fine. This is not only expected behavior for cd and ls, but for virtually any command on a Unix-style system. Arguments that begin with a "-" are interpreted as strings of options (think of "ls -ltc"), so cd (via the getopt library function) believes you are trying to pass it a string of options that includes (among other things) the space character. That's why the special "--" argument exists: it tells getopt to treat any following arguments as true program arguments, and not as options. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?25946> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils