[BusyBox 0000921]: bug with grep when the "string" has no a newline at the end

bugs at busybox.net bugs at busybox.net
Fri Jun 23 08:06:00 UTC 2006


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=921 
====================================================================== 
Reported By:                schroeterm
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   921
Category:                   Other
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             06-21-2006 11:53 PDT
Last Modified:              06-23-2006 01:05 PDT
====================================================================== 
Summary:                    bug with grep when the "string" has no a newline at
the end
Description: 
Hi,

there is a bug with grep when a "string" is found in the last line of a
text (for example : my_text).
and only ONE line (no new line at the end) in this file :

hello world


if you makes for example :

grep "he" my_text

the output is :

hello worl

without the last char "d".

this problem appears with busybox-1.1.3
but with a newline at the end there is no problem.


Regards,
Mathieu SCHROETER
====================================================================== 

---------------------------------------------------------------------- 
 bernhardf - 06-23-06 01:05  
---------------------------------------------------------------------- 
duplicate of http://busybox.net/bugs/view.php?id=887

This is already fixed on trunk and on the busybox_1_1_stable branch. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-21-06 11:53  schroeterm     New Issue                                    
06-21-06 11:53  schroeterm     Status                   new => assigned     
06-21-06 11:53  schroeterm     Assigned To               => BusyBox         
06-23-06 01:05  bernhardf      Status                   assigned => closed  
06-23-06 01:05  bernhardf      Note Added: 0001443                          
======================================================================




More information about the busybox-cvs mailing list