“额外” 的那个单引号是换码符。
第二个UDF执行转换操作,进行换码符替换。
The second UDF performs conversion with substitution escape character replacement.
这个感叹号是换码符,允许您从交互输入模式或批处理模式发出操作系统命令。
The exclamation mark is an escape character that lets you issue operating system commands from either interactive input mode or batch mode.
在“ r -strings ”中,可能另外组成换码符的反斜杠被当作是常规反斜杠。
In "r-strings," the backslash that might otherwise compose an escaped character is treated as a regular backslash.
另一个需要注意的是需要告诉Zsh在提示符中哪些字符构成换码序列,否则就会假设它们都是可打印字符,光标的位置就会出错。
Another point to be aware of is the need to tell Zsh which characters form escape sequence in a prompt, otherwise it will assume they are all printable characters, and position the cursor incorrectly.
另一个需要注意的是需要告诉Zsh在提示符中哪些字符构成换码序列,否则就会假设它们都是可打印字符,光标的位置就会出错。
Another point to be aware of is the need to tell Zsh which characters form escape sequence in a prompt, otherwise it will assume they are all printable characters, and position the cursor incorrectly.
应用推荐