# HG changeset patch # User Mads Kiilerich # Date 2009-12-16 11:10:21 # Node ID 66d8ec33da328d168beb0e18de913196a3465e65 # Parent a5f3f9b1c42aa0dc9102f77ce46ebb0fe6892acd test-share: Solaris sed can't handle never-ending lines diff --git a/tests/test-share b/tests/test-share --- a/tests/test-share +++ b/tests/test-share @@ -18,8 +18,8 @@ cd repo2 [ -d .hg/store ] \ && echo "fail: .hg/store should not exist" \ || echo "pass: .hg/store does not exist" -# sed appends a newline to the stream if none, GNU sed does not -sed "s:$HGTMP:*HGTMP*:" .hg/sharedpath | tr -d '\n'; echo +# Some sed versions appends newline, some don't, and some just fails +(cat .hg/sharedpath; echo) | head -n1 | sed "s:$HGTMP:*HGTMP*:" echo % commit in shared clone echo a >> a