VOGONS


0.72: cd Command Bug

Topic actions

  • This topic is locked. You cannot reply or edit posts.

First post, by Gene Wirchenko

User metadata
Rank Member
Rank
Member

I mistyped a cd command and got the wrong error message.

The name of the directory is eight characters long. My mistyping was the same. Since the directory is in the root directory, I typed the leading backslash. I should have seen something like:

Unable to change to: \12345678

Instead, it was like:

directoryname is longer than 8 charachters and/or contains spaces.
Try \12345~1

The typo "charachters" was in the error message.

The directoryname is being considered to be the whole parameter. This is incorrect. Note the lack of a "6" in the try line. Also, with

cd \ab\ab\ab

the suggestion is

Try \ab\ab~1

which loses one directory level.

The constraint on the length of the directoryname should be applied to each level of the name. A parameter longer than eight characters is fine. Assuming the directories exist

cd \dir1\dir2

will work just fine. If not, the above bogus error message is given.

Sincerely,

Gene Wirchenko

Reply 5 of 11, by augnober

User metadata
Rank Member
Rank
Member

Yes definitely. Feel free to add all combinations of invalid response to
stupid command line entries to the wiki, might give a nice list.

Yeah, because that's exactly what I want 😒. Truth is, I'm just a softie who isn't comfortable seeing a polite report met only with hostility (that is not to say there shouldn't be any). Now that I check, he joined several years ago, so he probably knew the drill anyway.

Reply 9 of 11, by taiken7

User metadata
Rank Member
Rank
Member

Just because some people are not native English speakers, do not assume that they are being sarcastic (or hostile) as WD pointed out;

Stress test the implementation until you can document what the current
behaviour is doing and what it should be changed to; or submit a patch.

Collecting 1000s of "cd" errors means we still have to do the above exercise; so lend a hand instead of insulting those that do.

As far as I can see it is already well documented (and responded to)
in the first 2 posts. We are not looking to spend too much time on errors
that are not going to be found by 99% of the userbase.

Reply 10 of 11, by Gene Wirchenko

User metadata
Rank Member
Rank
Member
wd wrote:

These are hints, not idiot-proof messages how you can use some really simple command as CD.

And when the hints are obviously wrong? Is it really that difficult to get them right for "some really simple command"?

Not everyone knows all the nuances. Why mislead them?

I reported this bug so that it could be corrected. I gave sufficient data so that it can be easily replicated. Why the hostility?

Sincerely,

Gene Wirchenko