Bug on "tr" command

Bug on "tr" command

Post by NGUYEN TANG C » Sat, 15 Jun 1996 04:00:00



Hi,

Try to execute " echo b | tr a-z A-Z "on SunOS4.x, Solaris2.4 and Solaris2.5, you can note the different resuls.

nguyen

 
 
 

Bug on "tr" command

Post by Rob Qui » Sat, 15 Jun 1996 04:00:00



Quote:>Try to execute " echo b | tr a-z A-Z "on SunOS4.x, Solaris2.4 and Solaris2.5, you can note the different resuls.

 The SunOS4 man page specifically says:
                   Note: in the System V version, square brackets
     are required to specify a range.

 The Solaris2.4 and 2.5 man pages say:
(2.5)
     [c-c]       Represents  the  range  of  collating   elements
                 between   the  range  endpoints,  inclusive,[...]
(2.4)
     [a-z]      Stands for the string of characters  whose  ASCII
               codes   run  from  character  a  to  character  z,
               inclusive.

--
|                                                                Rob Quinn |
|                                                            (703)904-2125 |

|                                                Sprint Corporate Security |