git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH] Avoid using non-portable `echo -n` in tests.
@ 2008-10-31 19:50 Francis Galiegue
  2008-10-31 20:10 ` Junio C Hamano
  2008-10-31 20:11 ` Ian Hilt
  0 siblings, 2 replies; 15+ messages in thread
From: Francis Galiegue @ 2008-10-31 19:50 UTC (permalink / raw)
  To: Git List

Le Friday 31 October 2008 19:39:33 Jeff King, vous avez écrit :
[...]
>
> Agreed, and actually I found such a bashism (test ==) last week (though
> of course it also broke on FreeBSD).
>

As for bash-isms, a hunt for $(...) also looks necessary...

$ grep -rl '\$([^)]\+)' $(find -type f)|wc -l
272

Unless I'm mistaken (and I probably am), the $(...) construct is 
bash-specific, isn't it?

-- 
fge

^ permalink raw reply	[flat|nested] 15+ messages in thread
* Re: [PATCH] t4030: Don't use echo -n
@ 2008-10-31  5:02 Brian Gernhardt
  2008-10-31  5:09 ` [PATCH] Avoid using non-portable `echo -n` in tests Brian Gernhardt
  0 siblings, 1 reply; 15+ messages in thread
From: Brian Gernhardt @ 2008-10-31  5:02 UTC (permalink / raw)
  To: Ian Hilt; +Cc: Git Mailing List


On Oct 30, 2008, at 7:52 PM, Ian Hilt wrote:

> On Thu, Oct 30, 2008 at 06:12:56PM -0400, Brian Gernhardt wrote:
>> Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
>
> No commit message???
>>

"Don't use echo -n" seemed simple enough to me, as it's the only thing  
it does.  And the reason is that echo -n isn't portable, as has been  
determined previously in git.  I'll update this and use the better  
replacement "printf" anyway.

> This doesn't apply for me.  My tip is up-to-date, but it doesn't  
> even have
> this file it t/.

This is based on next and is for a file that isn't in master.

~~ Brian

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-11-03 16:31 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-31 19:50 [PATCH] Avoid using non-portable `echo -n` in tests Francis Galiegue
2008-10-31 20:10 ` Junio C Hamano
2008-10-31 20:11 ` Ian Hilt
2008-10-31 20:30   ` Francis Galiegue
  -- strict thread matches above, loose matches on Subject: below --
2008-10-31  5:02 [PATCH] t4030: Don't use echo -n Brian Gernhardt
2008-10-31  5:09 ` [PATCH] Avoid using non-portable `echo -n` in tests Brian Gernhardt
2008-10-31  8:15   ` Junio C Hamano
2008-10-31 15:38     ` Brian Gernhardt
2008-10-31  8:20   ` Junio C Hamano
2008-10-31 14:32   ` Shawn O. Pearce
2008-10-31 18:24   ` Jeff King
2008-10-31 18:36     ` Pierre Habouzit
2008-10-31 18:39       ` Jeff King
2008-10-31 19:35         ` Francis Galiegue
2008-10-31 22:53           ` Johannes Schindelin
2008-11-03 16:30     ` Mike Ralphson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).