For sending merge request, I'm using Matthieu's script.
If you are using it, too, I recommend you to put a line "unset GREP_OPTION"
before calling grep.
doSendMail() {
unset GREP_OPTION
local recipients="${1}"
local summary=$(grep "^Summary: " "${logfile}" | head -1 | sed
's/^Summary: //')
mail -s "[${ARCH_ACTION}][${ARCH_CATEGORY}] ${summary}" ${recipients} <
"${logfile}"
echo "Mail sent: $summary"
}
It seems that GNU Emacs in CVS set GREP_OPTION. As the result
ASCII escape sequence(?) for coloring is added to the output
of grep.
Regards,
Masatake