[Bug 871] New: HUSH: builtin_read does not return >0 when stdin is closed

bugzilla at busybox.net bugzilla at busybox.net
Tue Jan 12 11:17:28 UTC 2010


https://bugs.busybox.net/show_bug.cgi?id=871

           Summary: HUSH: builtin_read does not return >0 when stdin is
                    closed
           Product: Busybox
           Version: 1.15.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Standard Compliance
        AssignedTo: unassigned at busybox.net
        ReportedBy: m.garai at ziv.es
                CC: busybox-cvs at busybox.net
   Estimated Hours: 0.0


In code like this:

cat XXX | ( while read a b c; do
   echo $a
   echo $b
  ....
done )

the current implementation leads to a infinite loop.

The patch attached in the bug 865 (
https://bugs.busybox.net/show_bug.cgi?id=865 ) fixes this bug.


-- 
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the busybox-cvs mailing list