From: Junio C Hamano Date: Fri, 09 Jul 2010 16:30:43 GMT Subject: Re: [RFC] war on echo in scripts Message-ID: <7vk4p4mxcc.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100709143011.GA1980@burratino> Jonathan Nieder writes: > Junio C Hamano wrote: >> Jonathan Nieder writes: > >>> +echo() { >>> + printf '%s\n' "$*" >>> +} >> >> As long as we don't have "echo -n" and "echo -e", this should >> work, but... > > Yes, it’s ugly. And it could make for surprises in user scripts. The latter could be avoided with "s/echo/sane_echo/"; we do that already for grep don't we?