經安全檢測,此網站為安全網站,請放心前往原始網址!

command line - shell script: echo without newline - Stack Overflow

There are multiple versions of tbe echo command, with different behaviors. Apparently the shell used for your script uses a version that doesn't recognize -n. The printf command has much more consistent behavior. echo is fine for simple things like echo h

stackoverflow.com

網址安全性掃描由 google 提供