Re: Fwd: [PATCH] git-subtree: Avoid using echo -n even indirectly
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Oct 9, 2013, 11:26 UTC
- Message-ID
- <vpqy562y9b8.fsf@anie.imag.fr>
- In-Reply-To
- <CAAcnjCQ+c=8wYZkqS7VzZ_bDDDkSwdQ3qdz77osrSpKDS9ON7Q@mail.gmail.com>
Paolo Giarrusso <p.giarrusso@gmail.com> writes:
> Otherwise, one could > change say to use printf, but that's more invasive.
"invasive" in the sense that it impacts indirectly more callers, but are there really cases where "echo" is needed when calling "say"? Aren't there other potential bugs when arbitrary strings are passed to "say", that would be fixed by using printf once and for all?
The patch would look like the one I did in 89b0230a20 (Wed Aug 7 2013, die_with_status: use "printf '%s\n'", not "echo").
-- Matthieu Moy http://www-verimag.imag.fr/~moy/