# not entirely safe to use it as a delimiter in the log file since
# there can still be escaped newlines that will be expanded due to
# the echo -e parameter.
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
echo -ne "${messagetype} ${line}\n\0" >> \
"${T}/logging/${EBUILD_PHASE:-other}"
done
eqawarn() {
elog_base QA "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
vecho -e " ${WARN}*${NORMAL} ${line}" >&2
done
LAST_E_CMD="eqawarn"
elog() {
elog_base LOG "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
echo -e " ${GOOD}*${NORMAL} ${line}"
done
LAST_E_CMD="elog"
einfo() {
elog_base INFO "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
echo -e " ${GOOD}*${NORMAL} ${line}"
done
LAST_E_CMD="einfo"
ewarn() {
elog_base WARN "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
echo -e " ${WARN}*${NORMAL} ${RC_INDENTATION}${line}" >&2
done
LAST_E_CMD="ewarn"
eerror() {
elog_base ERROR "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo "$@" | while read line ; do
+ echo -e "$@" | while read line ; do
echo -e " ${BAD}*${NORMAL} ${RC_INDENTATION}${line}" >&2
done
LAST_E_CMD="eerror"