[BusyBox 0001174]: tr mishandles case where first pattern set starts with hyphen

bugs at busybox.net bugs at busybox.net
Thu Feb 14 12:33:41 UTC 2008


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1174 
====================================================================== 
Reported By:                whitpa
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1174
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             01-25-2007 14:12 PST
Last Modified:              02-14-2008 04:33 PST
====================================================================== 
Summary:                    tr mishandles case where first pattern set starts
with hyphen
Description: 
GNU Coreutils tr:
    "echo foo-bar | tr - _" yields "foo_bar"

Busybox tr:
    "echo foo-bar | tr - _" yields "foo-bar"

This occurs in all versions of Busybox at least as far back as Busybox
1.00.

The tr applet does not support "--" for option/argument disambiguation
(eg. "tr -- - _"), so coding around this behaviour is awkward (have to use
something like "tr '\055' _").

====================================================================== 

---------------------------------------------------------------------- 
 vda - 02-14-08 04:33  
---------------------------------------------------------------------- 
Apparently fixed - just tested svn and it works correctly. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-25-07 14:12  whitpa         New Issue                                    
01-25-07 14:12  whitpa         Status                   new => assigned     
01-25-07 14:12  whitpa         Assigned To               => BusyBox         
02-14-08 04:33  vda            Status                   assigned => closed  
02-14-08 04:33  vda            Note Added: 0004624                          
======================================================================




More information about the busybox-cvs mailing list