[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:35:57 UTC 2006


The following issue has been SUBMITTED. 
====================================================================== 
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:35 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
====================================================================== 

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




More information about the busybox-cvs mailing list