-“cd” does not ignore leading spaces

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Mormegil
Junior Member
Junior Member
Posts: 13
Joined: 2008-07-02, 18:34 UTC

-“cd” does not ignore leading spaces

Post by *Mormegil »

When trying to use the command-line command “cd” to change the current directory, Total Commander does not trim leading spaces in the path, which means if there is more than exactly one space between “cd” and the path, the command fails and does nothing. Cf. the behavior of CMD.EXE, where all surrounding whitespace is ignored.

I.e.

Code: Select all

cd Subdir
works,
while

Code: Select all

cd  Subdir
does not.
Mormegil
Junior Member
Junior Member
Posts: 13
Joined: 2008-07-02, 18:34 UTC

Post by *Mormegil »

Ah, did not find that, sorry.

Thanks for info. Even though all the resolutions/replies are wrong, as this _is_ a bug, at least I know now. And, the feature of allowing “cd[space][space]"path"” is better than nothing, I guess.
Post Reply