[BusyBox 0000887]: troubles with grep and pipe when \n char is not sent
bugs at busybox.net
bugs at busybox.net
Tue May 30 09:49:33 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 02:49 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
----------------------------------------------------------------------
vodz - 05-30-06 02:49
----------------------------------------------------------------------
> I'vo done a mistake with version that's v1.1.3 and not 1.2
> Sorry for the error.
No. See different:
$ echo -n "hello world" | ./busybox grep hello
hello
$ echo -n "hello world" | ./busybox grep world
A patch attached.
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
05-30-06 01:50 deitantiuno Issue Monitored: deitantiuno
05-30-06 02:49 vodz Note Added: 0001390
======================================================================
More information about the busybox-cvs
mailing list