Subject: Re: [PATCH 08/16] t4200: use cut instead of sed

From: Junio C Hamano <[email-masked]>
Date: Wed, 12 Mar 2008 21:52:18 -0700

Jeff King <[email-masked]> writes:

> Some versions of sed (like the one on Solaris) don't like to
> match literal tabs, and simply print nothing. Instead, let's
> use cut.

> -sha1=$(sed -e 's/	.*//' .git/rr-cache/MERGE_RR)

This is a bit hard to believe.  On one of my ancient Sun box:

$ uname -a
SunOS sic.twinsun.com 5.8 Generic_117350-45 sun4u sparc SUNW,UltraSPARC-IIi-Engine
$ ls -l /bin/sed
-r-xr-xr-x   1 root     bin        28748 Aug  2  2005 /bin/sed

the above "sed" does not misbehave (/bin/sh does, of course, on $(...),
but that is a different story).