 |
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 |
 |