Although I have read Stephane's answer concentrated on basically all aspects of echo
vs printf
, I am unsure if it also answers my question, which stands:
The newline character produced by echo
, is it always there without using any option on virtually all systems?:
I have a POSIX script, where the relevant part is:
printf '\n'; printf '\n' >&2
And I ask myself, do I need to stick with printf
in this case too?
It could look better:
echo; echo >&2
But I am no expert, so I'm unsure.