[BusyBox 0001311]: sed incorrectly parses command file

bugs at busybox.net bugs at busybox.net
Fri Apr 13 20:11:17 UTC 2007


The following issue has been UPDATED. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1311 
====================================================================== 
Reported By:                kiltedknight
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1311
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     closed
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             04-12-2007 14:24 PDT
Last Modified:              04-13-2007 13:11 PDT
====================================================================== 
Summary:                    sed incorrectly parses command file
Description: 
When running the command "sed -f cmds.sed < input > output" with cmds.sed
containing:

s/^[^:]*: *//
s/\s*\\$//
s/\s*\([-./[:alnum:]_]\+\)/\1:\
/g

It will produce the error:
sed: unmatched '/'

When going through the code in sed.c, I discovered that it was attempting
to parse only the "/g" portion of the final command.
====================================================================== 

---------------------------------------------------------------------- 
 kiltedknight - 04-12-07 15:01  
---------------------------------------------------------------------- 
This bug is against the current version (1.5.0) 

---------------------------------------------------------------------- 
 vda - 04-13-07 13:11  
---------------------------------------------------------------------- 
Fixed in svd and added to 1.5.0 fixes directory. Thanks! 

---------------------------------------------------------------------- 
 vda - 04-13-07 13:11  
---------------------------------------------------------------------- 
Fixed in svn and added to 1.5.0 fixes directory. Thanks! 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
04-12-07 14:24  kiltedknight   New Issue                                    
04-12-07 14:24  kiltedknight   Status                   new => assigned     
04-12-07 14:24  kiltedknight   Assigned To               => BusyBox         
04-12-07 14:24  kiltedknight   File Added: bb_sed_fix.diff                    
04-12-07 14:24  kiltedknight   Issue Monitored: kiltedknight                    
04-12-07 15:01  kiltedknight   Note Added: 0002309                          
04-13-07 13:11  vda            Status                   assigned => closed  
04-13-07 13:11  vda            Note Added: 0002313                          
04-13-07 13:11  vda            Resolution               open => fixed       
04-13-07 13:11  vda            Note Added: 0002314                          
======================================================================




More information about the busybox-cvs mailing list