diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-01-04 20:49:29 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-01-04 20:49:29 +0000 |
commit | 64f5d0aae43437c7228b34e616fcd5d5192a9448 (patch) | |
tree | c2f2140f222167bb18766b32f5e7bd5e42531fb7 | |
parent | a38336eab540d0d823234ca861b4dc2ad30781ec (diff) | |
download | portage-64f5d0aae43437c7228b34e616fcd5d5192a9448.tar.gz portage-64f5d0aae43437c7228b34e616fcd5d5192a9448.tar.bz2 portage-64f5d0aae43437c7228b34e616fcd5d5192a9448.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. (trunk r9140)
svn path=/main/branches/2.1.2/; revision=9141
-rw-r--r-- | bin/isolated-functions.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index d7218b92f..e5f65e698 100644 --- 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 } |