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

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

瀏覽:494
日期:2025-06-08
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...看更多