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

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

From: Brandon Casey <hidden>
Date: 2016-06-15 22:44:23

Jeff King wrote:
On Fri, Mar 14, 2008 at 03:47:37PM -0500, Brandon Casey wrote:
quoted
If the dashdash notation is not portable, then
backslashing each dash also works. i.e. '\-\-\-\-..
I wonder if there are
systems that will get confused about it being a range.
Oh, now I understand _why_ backslashing the dashes worked. When your
email arrived I was still trying to figure out why

  echo hello | tr aeiou '\-\-\-\-\-'

correctly converted the e and o into dashes. Because tr must have a
way for the user to escape the range notation. I don't use tr very
often.

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