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

bugs at busybox.net bugs at busybox.net
Thu Jan 25 22:12:53 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             01-25-2007 14:12 PST
Last Modified:              01-25-2007 14:12 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' _").

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

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         
======================================================================




More information about the busybox-cvs mailing list