summaryrefslogtreecommitdiffstats
path: root/bin/isolated-functions.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-01-04 20:49:05 +0000
committerZac Medico <zmedico@gentoo.org>2008-01-04 20:49:05 +0000
commitb36c8955cedf9e01869efe8400c1ed98ab21ec98 (patch)
tree75d19999bdbd1602df58de7be2369c55ca31b483 /bin/isolated-functions.sh
parentbbc577ca2044f016a66e5bb45cbf78226938bef6 (diff)
downloadportage-b36c8955cedf9e01869efe8400c1ed98ab21ec98.tar.gz
portage-b36c8955cedf9e01869efe8400c1ed98ab21ec98.tar.bz2
portage-b36c8955cedf9e01869efe8400c1ed98ab21ec98.zip
Send eerror and ewarn messages to stderr. This is important in
case somebody calls portageq inside a global scope command substitution. The output needs to go to stderr so that the die message from the subshell is visible. svn path=/main/trunk/; revision=9140
Diffstat (limited to 'bin/isolated-functions.sh')
-rwxr-xr-xbin/isolated-functions.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index d7218b92f..e5f65e698 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -214,7 +214,7 @@ einfon() {
ewarn() {
elog_base WARN "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e " ${WARN}*${NORMAL} ${RC_INDENTATION}$*"
+ echo -e " ${WARN}*${NORMAL} ${RC_INDENTATION}$*" >&2
LAST_E_CMD="ewarn"
return 0
}
@@ -222,7 +222,7 @@ ewarn() {
eerror() {
elog_base ERROR "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e " ${BAD}*${NORMAL} ${RC_INDENTATION}$*"
+ echo -e " ${BAD}*${NORMAL} ${RC_INDENTATION}$*" >&2
LAST_E_CMD="eerror"
return 0
}