ProgrammingBashEcho to STDERR instead of STDOUTOutput (echo) to stderr rather than stdout See posting here and the Bash Hackers Illustrated Redirection Tutorial. >&2 echo "error"