Today, while playing with CMD, I accidentally discovered an interesting phenomenon of CMD. Maybe some friends have already noticed it.
I personally feel it is a small bug of CMD.
The process is as follows:
I first entered "cmd /d /f" in Start/Run to enter the command prompt. In order to enable the filename and directory auto-completion function. At this time, my command prompt is:
C:\Documents and Settings\Administrator>
Then press Ctrl+D casually to automatically complete a folder or file in the current directory at the current prompt position. At this time, my command prompt is:
C:\Documents and Settings\Administrator>「Start」menu
Then press the Tab key to make the cursor jump backward, and then keep pressing the BackSpace key until it can't be退. At this time, my command prompt has become:
C:\Documents and Settings\Administrato
Everyone should have discovered the problem.
Yes, the command prompt has changed. The original command prompt
C:\Documents and Settings\Administrator>
Now it has become
C:\Documents and Settings\Administrato
That is to say, after my operation just now, the command prompt lost the last two characters "r" and ">".
Then after pressing Enter, the command prompt returns to the original state.
Friends who are interested can try it by themselves. I have this strange phenomenon here. I don't understand the reason. I hope the experts can explain the reason for this phenomenon. I would like to thank you in advance, little brother.
I thought about it. It is very likely related to the "tab" function of the Tab key, but I can't be sure.
In addition, I tested in the root directory and there is no such phenomenon. I don't know if it's not fully tested or something.
Test environment: Windows XP SP2

