[BusyBox 0000887]: troubles with grep and pipe when \n char is not sent

bugs at busybox.net bugs at busybox.net
Tue May 30 08:50:31 UTC 2006


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=887 
====================================================================== 
Reported By:                deitantiuno
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   887
Category:                   Other
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             05-30-2006 01:35 PDT
Last Modified:              05-30-2006 01:50 PDT
====================================================================== 
Summary:                    troubles with grep and pipe when \n char is not sent
Description: 
Hi all
when i make a command like this

echo -n "hello world" | grep hello

i obtain an empty string while when i send:

echo "hello world" | grep hello 

i obtain      hello world.
Problem seems caused by \n char present at the end of the string; non
present both in older versions and bash you can find in all linux
distros.
bye
====================================================================== 

---------------------------------------------------------------------- 
 deitantiuno - 05-30-06 01:50  
---------------------------------------------------------------------- 
I'vo done a mistake with version that's v1.1.3 and not 1.2
Sorry for the error.
Bye 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
05-30-06 01:35  deitantiuno    New Issue                                    
05-30-06 01:35  deitantiuno    Status                   new => assigned     
05-30-06 01:35  deitantiuno    Assigned To               => BusyBox         
05-30-06 01:50  deitantiuno    Note Added: 0001389                          
======================================================================




More information about the busybox-cvs mailing list