Redirecting STDERR
suggest change2
is STDERR
.
$ echo_to_stderr 2>/dev/null # echos nothing
Definitions:
echo_to_stderr
is a command that writes "stderr"
to STDERR
echo_to_stderr () { echo stderr >&2 } $ echo_to_stderr stderr
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents