[BusyBox 0001278]: sed insert line bug

bugs at busybox.net bugs at busybox.net
Tue Mar 20 20:28:13 UTC 2007


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=1278 
====================================================================== 
Reported By:                zhuangyy
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1278
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             03-20-2007 00:09 PDT
Last Modified:              03-20-2007 13:28 PDT
====================================================================== 
Summary:                    sed insert line bug
Description: 
sed -e '2i\test' README
a 0x01 char is written after the line inserted instead of '\n'.

patch is attached.

I think the line "sed_puts(pattern_space, 1);" in sed.c also need to be
fixed.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 03-20-07 13:28  
---------------------------------------------------------------------- 
Already fixed in current svn 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
03-20-07 00:09  zhuangyy       New Issue                                    
03-20-07 00:09  zhuangyy       Status                   new => assigned     
03-20-07 00:09  zhuangyy       Assigned To               => BusyBox         
03-20-07 00:09  zhuangyy       File Added: busybox-1.4.2.sed-i.patch            
       
03-20-07 13:28  vda            Status                   assigned => closed  
03-20-07 13:28  vda            Note Added: 0002258                          
======================================================================




More information about the busybox-cvs mailing list