This is part of a larger script but I distilled the problem down to this:
cm_safe(){
git push | while read line; do
echo "cm safe push: $line"
done;
}
I want to prepend git output, so it would look like:
cm safe push: Everything up-to-date
but instead I just get:
Everything up-to-date
Is git writing to the tty or something directly? I dunno what's going on.
git push --help
and I don't see an option on where to send stdout/stderr – Feb 26 '20 at 20:35