Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:44:22

Possibly related (same subject, not in this thread)

Jeff King [off-list ref] 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).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help