...单词的转义。 每一个元字符对于shell来说都有特殊意义,如果想表示元字符本身,必须引用它。 当使用命令历史扩展功能时,要阻止历史扩展,就必须引用历史扩展(history expansion)字符,一般是!。
基于28个网页-相关网页
使用历史扩展。
例如,“ ! ”字符是历史扩展字符,bash通常将其替换为前面输入的命令。
For example, the "! "character is the history expansion character, which bash normally replaces with a previously-typed command.
有关历史扩展的详细信息,请参阅bash帮助页中的“历史扩展”一节。
For more information on it, see the "HISTORY EXPANSION" section in the bash man page.
应用推荐