From: Junio C Hamano Date: Fri, 09 Jul 2010 04:46:06 GMT Subject: Re: [RFC] war on echo in scripts Message-ID: <7vocehmfe9.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100709024633.GA13739@dert.cs.uchicago.edu> Jonathan Nieder writes: > Hmm, maybe something like this would be easier. > > Signed-off-by: Jonathan Nieder > --- > diff --git a/git-sh-setup.sh b/git-sh-setup.sh > index 6131670..b38b40b 100644 > --- a/git-sh-setup.sh > +++ b/git-sh-setup.sh > @@ -39,6 +39,10 @@ git_broken_path_fix () { > > # @@BROKEN_PATH_FIX@@ > > +echo() { > + printf '%s\n' "$*" > +} As long as we don't have "echo -n" and "echo -e", this should work, but...