BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000248 [BusyBox] Other major always 05-06-05 15:57 09-01-05 17:15
Reporter keithel View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.00
Summary 0000248: sed y// doesn't behave as defined by standard sed
Description The y// text transformation command in busybox sed does not function properly.

here's an example (rot13 of "Hello World!"):
echo 'Hello World!' | sed -e 'y/abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ/nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM/'

standard gnu sed output: Uryyb Jbeyq!
busybox sed output: Hellb Jbeld!

The output appears as though the replacement happened for each replacement set over the whole string each time, iteratively. So, all a's in the string are replaced by n, b's replaced by o, [...] n's replaced by a (even ones that were originally a, replaced by n when that first happened).

This should not happen, once a replacement happens, the character should be taken out of the list.
Additional Information
Attached Files

- Relationships

- Notes
(0000484)
landley
09-01-05 17:15

r11312

(It was a missing break statement.)
 

- Issue History
Date Modified Username Field Change
05-06-05 15:57 keithel New Issue
09-01-05 17:15 landley Status assigned => closed
09-01-05 17:15 landley Note Added: 0000484
09-01-05 17:15 landley Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker