* Daniel Richard G. wrote on Sat, Dec 13, 2008 at 10:37:30PM CET:
> Here is the real problem---not gawk(1), but indeed tr(1):
>
> % ( echo foo ; echo bar ) | tr '\015\012' ' '
> foo
> bar
> % ( echo foo ; echo bar ) | tr '\015\012' ' ' <---- note the two-space
> string
> foo bar %
>
> The expected "SET2 is extended to length of SET1 by repeating its last
> character as necessary" thing is not happening!
Posix leaves this unspecified, in order to allow for the historical
System V semantics.
Cheers,
Ralf