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