[Bug 865] New: HUSH: read does not use more than one argument

bugzilla at busybox.net bugzilla at busybox.net
Tue Jan 12 11:13:49 UTC 2010


           Summary: HUSH: read does not use more than one argument
           Product: Busybox
           Version: 1.15.x
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          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

Created an attachment (id=901)
 --> (https://bugs.busybox.net/attachment.cgi?id=901)
patch to add multiple argument to builtin read of HUSH

The hush's builtin read does not accept more than one argument, I just did a
patch to enable this feature (attached here).

There are some limitations in this patch:
1) it ignores escape sequences
2) it does not use $IFS (I first use the global variable G.ifs but i did have
issues in blackfin architecture with the simple command "echo a | read a" and
similars that raised a NULL pointer error)

This patch also fixes a bug of builtin read that did not return >0 when stdin
was closed, for using read in commands of type "cat XXX | ( while read a b ; do
... ; done )"

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