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
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
}
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
}