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

Re: [PATCH] t/t6000lib.sh: tr portability fix fix

From: Jeff King <hidden>
Date: 2016-06-15 22:44:23

On Fri, Mar 14, 2008 at 04:26:31PM -0500, Brandon Casey wrote:
Here's the version with escaped dashes. If you do the sed version, it's
something to compare to for readability.

[...]

-		   '------------------------------' |
+		   '\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-\-' |
Ugh. How about:

  sed 'yA~`!@#$%^&*()_+={}[]|\;:"<>,/? A------------------------------A'

The 'A' delimiter is because in my test, Solaris sed didn't seem to
understand \/ to include the literal '/'. And all of the other
punctuation is already used in the pattern. ;)

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help