Merged from trunk 9139:9140
authorFabian Groffen <grobian@gentoo.org>
Sat, 5 Jan 2008 13:49:22 +0000 (13:49 -0000)
committerFabian Groffen <grobian@gentoo.org>
Sat, 5 Jan 2008 13:49:22 +0000 (13:49 -0000)
   | 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

index aed9a9476a83870986245a395a127c9ec1e6a9ee..73619ae85a88aab1cefbfd7bd762ed18faf48083 100755 (executable)
@@ -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
 }