[Bug 235] ash: incorrect word splitting with read builtin

bugzilla at busybox.net bugzilla at busybox.net
Mon Jan 4 13:03:30 UTC 2010


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


Gene Ruud <ernews at gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #6 from Gene Ruud <ernews at gmx.de>  2010-01-04 13:03:27 UTC ---
According to
http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_05
(provided I interpret it correctly) the following

printf '\t,\ta\t,\tb\tc' | ash -c 'IFS=$(printf " \t,") read a b c d; echo
".$a. .$b. .$c. .$d."'

should result in: .. .a. .b. .c. In version 1.15.3 it however results in: .a.
.b. .c. ..

The fix-patch from this ticket introduced the bug. Patch with fix and some test
cases attached.


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