Table of Contents
问题描述
echo 输出内容是默认带换行符的
加上-n选项可以去除默认的换行符,效果如下

这个在bash下显示正常,但是在zsh下会多输出一个%

解决方案
在 .zshrc 中添加以下设置,然后source ~/.zshrc
unsetopt prompt_cr prompt_sp
Table of Contents
echo 输出内容是默认带换行符的
加上-n选项可以去除默认的换行符,效果如下

这个在bash下显示正常,但是在zsh下会多输出一个%

在 .zshrc 中添加以下设置,然后source ~/.zshrc
unsetopt prompt_cr prompt_sp
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me? https://www.binance.info/register?ref=JW3W4Y3A