Ray Lauff <r...@temple.edu> wrote:

> No, it doesn't look like it works correctly with newlines:
>
> sun%>   od -c nums.txt                                        # basic 
> datafile 
> 0000000   1  \n   2  \n   3  \n   4  \n
> 0000010
> sun%>   tr '\n' '\0' < nums.txt | od -c -             # fails
> 0000000   1  \n   2  \n   3  \n   4  \n
> 0000010
> sun%>   tr '\n' '5' < nums.txt | od -c -              # fails
> 0000000   1  \n   2  \n   3  \n   4  \n
> 0000010
> sun%>   tr '1' '5' < nums.txt | od -c -                       # works
> 0000000   5  \n   2  \n   3  \n   4  \n
> 0000010
> sun%>  

It works correctly with new lines but it behaves as you requested:

you requested behavior from the early 1980s by putting /usr/ucb/ early in you 
PATH. Simular things would happen with ACLs if you did put //usr/gnu/bin early 
in your PATH. If you select a specific behavior, you get what you requested.

tr did not handle 0 bytes in the 1980s....

gnu tools do not handle ACLs 

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to