BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000887 [BusyBox] Other major always 05-30-06 01:35 06-10-06 04:06
Reporter deitantiuno View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.2.x
Summary 0000887: 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
Additional Information
Attached Files  get_line_from_file.patch [^] (293 bytes) 05-30-06 02:51

- Relationships

- Notes
(0001389)
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
 
(0001390)
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.
 
(0001407)
bernhardf
06-10-06 04:06

Fixed on busybox_1_1_stable and on trunk.
Thanks!
 

- 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
05-30-06 02:51 vodz File Added: get_line_from_file.patch
06-10-06 04:06 bernhardf Status assigned => closed
06-10-06 04:06 bernhardf Note Added: 0001407
06-10-06 04:06 bernhardf Resolution open => fixed
06-10-06 04:06 bernhardf Fixed in Version  => 1.1.x


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker