From e694cb5132d1f638b0e279b0dc0a0a898d024152 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Sat, 5 Jan 2008 13:49:22 +0000 Subject: [PATCH] Merged from trunk 9139:9140 | 9140 | Send eerror and ewarn messages to stderr. This is important | | zmedico | 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/branches/prefix/; revision=9143 --- bin/isolated-functions.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index aed9a9476..73619ae85 100755 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -216,7 +216,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 } @@ -224,7 +224,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 } -- 2.26.2