Is this line the best way to print out an error message in Bash?
echo 'Error: banana' >&2
I need to update tens of Bash scripts which use all different ways of logging errors and I might as well choose the “right” way to do this and adhere to a standard as I do it…
On linux, I’d prefer to say
This will effectively do the same, of course, since
/dev/stderrsymlinks to/proc/$PID/fd/2