From: Paolo Giarrusso Date: Fri, 11 Oct 2013 09:32:11 GMT Subject: Re: Fwd: [PATCH] git-subtree: Avoid using echo -n even indirectly Message-ID: In-Reply-To: <20131009211101.GM9464@google.com> On Wed, Oct 9, 2013 at 11:11 PM, Jonathan Nieder wrote: > Paolo Giarrusso wrote: > >> Seeing the email, I wonder whether there's hope something like that >> can be preserved in an email, and whether the code should use some >> escape sequence instead. > > Yes, please. Mind if I amend it to > > printf "%s\r" "$revcount/$revmax ($createcount)" >&2 > > ? Please do go ahead, by all means (arguably as a different commit, but those are minor details). > [...] >>> say() >>> { >>> if [ -z "$quiet" ]; then >>> echo "$@" >&2 >>> fi >>> } > > I agree with the other reviewers that this should be fixed to use > printf, too, but that's another topic. Seconded. -- Paolo G. Giarrusso - Ph.D. Student, Philipps-University Marburg http://www.informatik.uni-marburg.de/~pgiarrusso/