return 1
;;
esac
- echo -e "$@" | while read ; do
+ echo -e "$@" | while read -r ; do
echo "$messagetype $REPLY" >> \
"${T}/logging/${EBUILD_PHASE:-other}"
done
eqawarn() {
elog_base QA "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- vecho -e " $WARN*$NORMAL $REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ vecho " $WARN*$NORMAL $REPLY" >&2
done
LAST_E_CMD="eqawarn"
return 0
elog() {
elog_base LOG "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $GOOD*$NORMAL $REPLY"
+ echo -e "$@" | while read -r ; do
+ echo " $GOOD*$NORMAL $REPLY"
done
LAST_E_CMD="elog"
return 0
einfo() {
elog_base INFO "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $GOOD*$NORMAL $REPLY"
+ echo -e "$@" | while read -r ; do
+ echo " $GOOD*$NORMAL $REPLY"
done
LAST_E_CMD="einfo"
return 0
ewarn() {
elog_base WARN "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $WARN*$NORMAL $RC_INDENTATION$REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ echo " $WARN*$NORMAL $RC_INDENTATION$REPLY" >&2
done
LAST_E_CMD="ewarn"
return 0
eerror() {
elog_base ERROR "$*"
[[ ${RC_ENDCOL} != "yes" && ${LAST_E_CMD} == "ebegin" ]] && echo
- echo -e "$@" | while read ; do
- echo -e " $BAD*$NORMAL $RC_INDENTATION$REPLY" >&2
+ echo -e "$@" | while read -r ; do
+ echo " $BAD*$NORMAL $RC_INDENTATION$REPLY" >&2
done
LAST_E_CMD="eerror"
return 0