git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t4030: Don't use echo -n
@ 2008-10-30 22:12 Brian Gernhardt
  2008-10-30 23:52 ` Ian Hilt
  0 siblings, 1 reply; 19+ messages in thread
From: Brian Gernhardt @ 2008-10-30 22:12 UTC (permalink / raw)
  To: Git List; +Cc: Shawn O Pearce

Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
 t/t4030-diff-textconv.sh |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff-textconv.sh
index 3945731..7ec244f 100755
--- a/t/t4030-diff-textconv.sh
+++ b/t/t4030-diff-textconv.sh
@@ -96,16 +96,15 @@ cat >expect.typechange <<'EOF'
 -1
 diff --git a/file b/file
 new file mode 120000
-index ad8b3d2..67be421
+index ad8b3d2..8e4020b
 --- /dev/null
 +++ b/file
 @@ -0,0 +1 @@
 +frotz
-\ No newline at end of file
 EOF
 # make a symlink the hard way that works on symlink-challenged file systems
 test_expect_success 'textconv does not act on symlinks' '
-	echo -n frotz > file &&
+	echo frotz > file &&
 	git add file &&
 	git ls-files -s | sed -e s/100644/120000/ |
 		git update-index --index-info &&
-- 
1.6.0.3.523.g304d0

^ permalink raw reply related	[flat|nested] 19+ messages in thread
* 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; 19+ 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] 19+ messages in thread

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

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-30 22:12 [PATCH] t4030: Don't use echo -n Brian Gernhardt
2008-10-30 23:52 ` Ian Hilt
2008-10-31  5:02   ` 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  9:36         ` [PATCH] Avoid using non-portable `echo-n` " Steve Folly
2008-10-31 14:32       ` [PATCH] Avoid using non-portable `echo -n` " 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
  -- strict thread matches above, loose matches on Subject: below --
2008-10-31 19:50 Francis Galiegue
2008-10-31 20:10 ` Junio C Hamano
2008-10-31 20:11 ` Ian Hilt
2008-10-31 20:30   ` Francis Galiegue

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).