Re: [PATCH] Avoid using non-portable `echo -n` in tests.
- From
Brian Gernhardt <benji@silverinsanity.com>
- Date
- Oct 31, 2008, 15:38 UTC
- Message-ID
- <B8E9E11A-48B9-44A8-8ED2-812FFFCFABA6@silverinsanity.com>
- In-Reply-To
- <7vy70589jc.fsf@gitster.siamese.dyndns.org>
On Oct 31, 2008, at 4:15 AM, Junio C Hamano wrote:
Show 7 quoted lines
> Brian Gernhardt <benji@silverinsanity.com> writes: > >> Not all /bin/sh have a builtin echo that recognizes -n. Using printf >> is far more portable. > > This is much better (minor nit: we do not care if echo is built-in or > /bin/echo); the point of t4030 is to produce an incomplete line ;-).
Well, yes. The reason I phrased it that way was that my /bin/echo recognizes -n but /bin/sh does not.
~~ Brian