What does the single circumflex in the windows cmd shell mean: More?

邮差的信 提交于 2021-02-05 09:55:07

问题


This might not be really a question related to programming, but i have wondered for a long time, what the following cmd command means....:

Just type a single circumflex in the cmd shell and windows will ask for more... And as long as you enter an even number of circumflexes, windows can't get enough. I have wondered since Vista... is this just some sort of "easter egg" or is there a purpose behind this?

  • Philipp

回答1:


It appears appending ^ just lets you continue to write a command in the next line:

C:\Users\Felk>echo ^
More? hello ^
More? world
hello world

Turns out ^ is just the escape character for the windows shell.

C:\Users\Felk>echo |
Syntaxerror.

C:\Users\Felk>echo ^|
|

Also see this answer



来源:https://stackoverflow.com/questions/33946226/what-does-the-single-circumflex-in-the-windows-cmd-shell-mean-more

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!