[BusyBox 0001278]: sed insert line bug

bugs at busybox.net bugs at busybox.net
Tue Mar 20 07:09:19 UTC 2007


The following issue has been SUBMITTED. 
====================================================================== 
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:                     assigned
====================================================================== 
Date Submitted:             03-20-2007 00:09 PDT
Last Modified:              03-20-2007 00:09 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.
====================================================================== 

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




More information about the busybox-cvs mailing list