I have a cron job ...
/bin/sh /usr/local/maint/update-wp-sites 2>&1 > /usr/local/maint/output/update-wp-sites.$(date +"\%F_\%H\%M\%S").txt
It works great.
Here's the code for update-wp-sites:
red='\033[0;31m'
color_off='\033[0m'
echo -e "$red updating wp core $color_off"
wp core update
But the output in the update-wp-sites.$(date ...) file specified above looks like this:
-e updating wp core
Success: WordPress is up to date.
Why is "-e" appearing?