bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tr portability


From: Bruno Haible
Subject: Re: tr portability
Date: Sat, 26 Apr 2008 14:06:17 +0200
User-agent: KMail/1.5.4

Ralf Wildenhues wrote:
> > > I hear that there really do exist systems in actual use
> > > on which tr still does not honor backslash-escapes like \r and \n.
> > 
> > Which platforms, please?
> 
> Solaris 10 /usr/ucb/tr.  Not likely to be early in PATH, but hey, people
> do all kinds of weird things to their path.  ;-)

This is not documented in the autoconf manual, section "Limitations of
Usual Tools". But I can confirm the fact:

$ { echo moon; echo light; } | /usr/ucb/tr -d '\n' ; echo
moo
light

$ { echo moon; echo light; } | /usr/bin/tr -d '\n' ; echo
moonlight
$ { echo moon; echo light; } | /usr/ucb/tr -d '\012' ; echo
moonlight

Bruno





reply via email to

[Prev in Thread] Current Thread [Next in Thread]