|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『楼 主』:
又发现CMD的一个有趣现象
使用 LLM 解释/回答一下
今天在把玩CMD的时候,无意间又发现了CMD的一个有趣的现象,可能已经有的朋友已经发现了吧`
个人感觉有点像是CMD的一个小bug.
过程如下:
我先在开始/运行里面输入"cmd /d /f"进入命令提示符,为了启用文件名和目录自动补全功能,此时我的命令提示符为:
C:\Documents and Settings\Administrator>
然后随便按一下Ctrl+D使当前提示符的位置自动补一个当前目录下的文件夹或者文件,此时我的命令提示符为:
C:\Documents and Settings\Administrator>「开始」菜单
然后再按一下Tab键,使光标向后跳,然后再连续按退格键(BackSpace键),直到退到不能退,此时我的命令提示符已经变为:
C:\Documents and Settings\Administrato
大家应该已经发现了问题的所在了吧`
没错,就是命令提示符变了,原本的命令提示符
C:\Documents and Settings\Administrator>
现在变为了
C:\Documents and Settings\Administrato
也就是说经过了我刚才的操作之后,命令提示符丢掉了最后的两个字符"r"和">".
然后回车之后,命令提示符又恢复了原样了.
有兴趣的朋友可以自己试一下,我这里就是这个怪现象,不懂其中的道理,希望高手可以解释一下出现这个现象的原因,小弟在这里先谢了~
我思考了一下,很有可能和Tab键的"跳格"功能有关系,但是不敢断定.
另外,我在根目录下测试没有这个现象,不知道是没有测试完全还是什么.
测试环境:Windows XP SP2
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
|
|
2006-10-8 08:48 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-10-8 09:09 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
可能是cmd处理中文字符宽度+unicode编码问题。如果 第一次 的 Ctrl+D 是英文的话没有这个问题
It may be related to the width of Chinese characters in cmd processing + Unicode encoding issues. If the first Ctrl+D is in English, there is no such problem
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-10-8 10:33 |
|
|
namejm
荣誉版主
       batch fan
积分 5226
发帖 1737
注册 2006-3-10 来自 成都
状态 离线
|
|
2006-10-8 10:42 |
|
|
my3439955
中级用户
  
积分 272
发帖 99
注册 2006-6-2
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
这是unicode的问题
但是虽然看着不舒服
其实一样用
没影响的
This is a problem with Unicode. But although it looks uncomfortable, actually it can be used the same way, no impact.
|
|
2006-10-14 23:23 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
Originally posted by my3439955 at 2006-10-14 23:23:
这是unicode的问题
但是虽然看着不舒服
其实一样用
没影响的
但还是是在使用的过程中有点小麻烦哦```
不信你多试试``
PS:兄弟的头像还可以啊,够靓~
Originally posted by my3439955 at 2006-10-14 23:23:
This is a Unicode issue.
But although it looks uncomfortable,
actually it can still be used,
no impact.
But there are still some small troubles during the use.```
Don't believe it, you can try more.``
PS: Brother's avatar is also okay, quite cool~
|
|
2006-10-15 05:55 |
|
|
lp1129
初级用户
 
积分 186
发帖 92
注册 2007-3-27
状态 离线
|
|
2007-3-28 02:17 |
|
|
wfr4094
新手上路

积分 6
发帖 4
注册 2007-5-30
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
积分 122
发帖 60
注册 2007-3-27
状态 离线 『第 7 楼』:
高深莫测啊
Points: 122
Posts: 60
Registered: 2007-3-27
Status: Offline 『Post 7』:
So profound and mysterious
|
|
2007-6-14 17:54 |
|
|
sfencer
新手上路

积分 16
发帖 8
注册 2007-6-4
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
我的是2000系统,变成了
Administrator.ZLX>「开始
也就是“「开始” 这三个字都删不掉了
My system is Windows 2000, and it has become Administrator.ZLX>「开始
That is, the three characters "「开始" cannot be deleted at all
|
|
2007-6-16 15:23 |
|
|
wert123
中级用户
  
积分 301
发帖 135
注册 2007-5-15
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
lxmxn斑竹大师一找就一个bug,确实有用啊,不过我不清楚是什么原因
反正C:\Documents and Settings\AdministratoNOTEPAD就运行记事本了
Bamboo master lxmxn found a bug at once, which is really useful, but I don't know the reason. Anyway, running NOTEPAD at "C:\Documents and Settings\Administrato" starts Notepad.
|
|
2007-6-16 16:56 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
原因可以看看4楼的链接。
You can check the link in floor 4 for the reason.
|
|
2007-6-16 21:56 |
|
|
solomon9813
新手上路

积分 7
发帖 3
注册 2005-12-2
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
我的没有这个现象阿
There is no such phenomenon with mine.
|
|
2007-8-22 23:31 |
|
|
picat
初级用户
 
积分 150
发帖 68
注册 2007-4-26
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
原来cmd也可以自动完成,唉,这里真是牛栏啊~
Oh, it turns out that cmd can also auto-complete. Oh, this place is really a cow pen~
|
|
2007-8-23 10:14 |
|
|
258692011
新手上路

积分 13
发帖 8
注册 2008-2-18
状态 离线
|
|
2008-2-19 00:46 |
|
|
87218129
新手上路

积分 4
发帖 2
注册 2008-9-5 来自 河北邯郸
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
不懂,不过挺有趣的哦
Don't understand, but it's quite interesting oh
|
|
2008-9-5 11:37 |
|