[BusyBox 0001214]: Sed uncorrect work with branches.

bugs at busybox.net bugs at busybox.net
Tue Feb 13 18:16:45 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1214 
====================================================================== 
Reported By:                regunkov
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1214
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             02-13-2007 10:16 PST
Last Modified:              02-13-2007 10:16 PST
====================================================================== 
Summary:                    Sed uncorrect  work with branches.
Description: 
root at nsg /root # echo -e '0\n1\n2\n3\n4\n' | sed -e 's/1/x/;T;n;:
next;s/3/y/;t quit;n;b next;: quit;q'
0
x
2
root at nsg /root #

But it must be

regunkov at roman /home/nsg/src/linux-2.4.32-x-nsg/Documentation/filesystems
$ echo -e '0\n1\n2\n3\n4\n' | sed -e 's/1/x/;T;n;: next;s/3/y/;t quit;n;b
next;: quit;q'
0
x
2
y
regunkov at roman /home/nsg/src/linux-2.4.32-x-nsg/Documentation/filesystems
$

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

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-13-07 10:16  regunkov       New Issue                                    
02-13-07 10:16  regunkov       Status                   new => assigned     
02-13-07 10:16  regunkov       Assigned To               => BusyBox         
======================================================================




More information about the busybox-cvs mailing list