This is a simple C program:
這是一個簡單的C程序:
This is the result of that program -- note the %
at the end.
這是該計划的結果 - 注意最后的%。
4
zsh prints a %
(by default for a normal user) when the last line does not end with a newline character. This partial line could be erased by the prompt otherwise. Add a newline to properly terminate the last line (\n
):
當最后一行不以換行符結束時,zsh會輸出%(默認情況下為普通用戶)。否則可以通過提示擦除該部分線。添加換行符以正確終止最后一行(\ n):
printf("1\n");
http://zsh.sourceforge.net/Doc/Release/Options.html#index-PROMPT_005fSP
http://zsh.sourceforge.net/Doc/Release/Options.html#index-PROMPT_005fSP
本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:https://www.itdaan.com/blog/2018/06/19/7202b1a6e0ce183e5b837d93811772f6.html。