On Sun, Feb 14, 1999 at 02:21:30AM -0500, nash e. foster wrote:
> On Sun, 14 Feb 1999, Rafal Maszkowski wrote:
> > There are at least three (!) different trs on Solaris:
> > rzm@galera:~/lsh,0> lt /usr/ucb/tr /usr/xpg4/bin/tr /usr/bin/tr
> > -r-xr-xr-x   1 bin         14480 May  3  1996 /usr/xpg4/bin/tr
> > -r-xr-xr-x   1 bin         15108 May  3  1996 /usr/bin/tr
> > -rwxr-xr-x   1 bin          4676 May  3  1996 /usr/ucb/tr
> I believe these conform to the following standards:
>       /usr/bin/tr             - system V
>       /usr/ucb/tr             - BSD
>       /usr/xpg4/bin/tr        - X/Open Portability Guide Issue 4
> Here's are excerpts from the Solaris man page which explains ...  

I was reading the tr's man page. In same cases it shows two syntax versions:

  /usr/xpg4/bin/tr
     c-c
  /usr/bin/tr
     [c-c]       Represents  the  range  of  collating   elements

For \n there is only one explanation version but in practice it works or not on
some trs. I do not know what are the real differences between the standards.
\octal has also single explanation but additionally it also works in the same
way between the versions.

R.

Reply via email to