From: Fabian Groffen Date: Sat, 5 Jan 2008 13:49:22 +0000 (-0000) Subject: Merged from trunk 9139:9140 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=e694cb5132d1f638b0e279b0dc0a0a898d024152;p=portage.git 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 --- 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 }