aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-02-17 16:16:31 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-02-17 16:16:31 +0000
commit5f6004d0807c7bdbbc313652f688149b588e2ff1 (patch)
tree3abe5de0df56677ea0c59c6e4480ba46fd5f5bb7
parentd187ff79e552e04c51da05856e1274e0edbb11ac (diff)
downloadpaludis-5f6004d0807c7bdbbc313652f688149b588e2ff1.tar.gz
paludis-5f6004d0807c7bdbbc313652f688149b588e2ff1.tar.xz
Send elog etc to stderr.
-rw-r--r--paludis/util/echo_functions.bash.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/paludis/util/echo_functions.bash.in b/paludis/util/echo_functions.bash.in
index 3a15a77..9af0cf0 100644
--- a/paludis/util/echo_functions.bash.in
+++ b/paludis/util/echo_functions.bash.in
@@ -49,8 +49,8 @@ paludis_ecmd()
{
local cmd="$1" hook="$2" prefix="$3" message="$4" newline="$5"
- echo -n "${prefix}${message}"
- [[ -z "${newline}" ]] && echo
+ echo -n "${prefix}${message}" >&2
+ [[ -z "${newline}" ]] && echo >&2
if type perform_hook &>/dev/null ; then
if [[ -n "${hook}" ]] ; then
@@ -150,7 +150,7 @@ _eend()
msg="${COLOUR_BRACKET}[ ${COLOUR_BAD}!!${COLOUR_BRACKET} ]${COLOUR_NORMAL}"
fi
- echo -e "${PALUDIS_ENDCOL} ${msg}"
+ echo -e "${PALUDIS_ENDCOL} ${msg}" >&2
return ${retval}
}