# [PATCH] Trivial sed fix up in t/t6001

2 messages from 2005-07-01 to 2005-07-01. Participants: Mark Allen, Jon Seymour.
Thread: https://gitlist.dev/t/1084

## Mark Allen, 2005-07-01 13:55

Subject: [PATCH] Trivial sed fix up in t/t6001
Message-ID: <20050701135516.87892.qmail@web41208.mail.yahoo.com>
URL: https://gitlist.dev/e/20050701135516.87892.qmail%40web41208.mail.yahoo.com

```
Change the sed seperator in t/t6001.

This trivial patch removes the semicolon as the sed seperator in the t/t6001 test script
and replaces it with white space.  This makes BSD sed(1) much happier.

Signed-off-by: Mark Allen <mrallen1@yahoo.com>

===

Jon,

If you could ack this patch or incorporate it into your tree, I'd be very obliged.

Thanks,

--Mark



diff --git a/t/t6001-rev-list-merge-order.sh b/t/t6001-rev-list-merge-order.sh
--- a/t/t6001-rev-list-merge-order.sh
+++ b/t/t6001-rev-list-merge-order.sh
@@ -40,7 +40,8 @@ save_tag()
 	[ -n "$_tag" ] || error "usage: save_tag tag commit-args ..."
 	shift 1
     	"$@" >.git/refs/tags/$_tag
-    	sed_script="s/$(tag $_tag)/$_tag/g${sed_script+;}$sed_script"
+    	sed_script="s/$(tag $_tag)/$_tag/g
+$sed_script"
 }
 
 # Replace unhelpful sha1 hashses with their symbolic equivalents 

```

## Jon Seymour, 2005-07-01 15:51

Subject: Re: [PATCH] Trivial sed fix up in t/t6001
Message-ID: <2cfc40320507010851259a7e85@mail.gmail.com>
URL: https://gitlist.dev/e/2cfc40320507010851259a7e85%40mail.gmail.com
In-Reply-To: <20050701135516.87892.qmail@web41208.mail.yahoo.com>

```
On 7/1/05, Mark Allen <mrallen1@yahoo.com> wrote:
> Change the sed seperator in t/t6001.
> 
> This trivial patch removes the semicolon as the sed seperator in the t/t6001 test script
> and replaces it with white space.  This makes BSD sed(1) much happier.
> 
> Signed-off-by: Mark Allen <mrallen1@yahoo.com>
> 
> ===
> 
> Jon,
> 
> If you could ack this patch or incorporate it into your tree, I'd be very obliged.
> 
> Thanks,
> 
> --Mark

Ack'd. I have also re-applied it to the code I moved into
t/t6000-lib.sh in my recent patch series, so it is fit to go in one
way or another!

jon.

```
