busybox/shell/ash_test/ash-read
Christian Eggers 39925026f6 shell: Fix "read -d ''" behavior
With bash's read builtin it is possible to read from a file (e.g.
device-tree) until the first '\0' character:

IFS= read -r -d '' VARIABLE < file

In busybox ash the -d extension is also implemented, but checking the
read character for '\0' has to be performed after comparing with the
delimiter.

Signed-off-by: Christian Eggers <ceggers@arri.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2020-07-31 18:42:30 +02:00
..
read_d0.right shell: Fix "read -d ''" behavior 2020-07-31 18:42:30 +02:00
read_d0.tests shell: Fix "read -d ''" behavior 2020-07-31 18:42:30 +02:00
read_ifs.right
read_ifs.tests
read_n.right
read_n.tests
read_r.right
read_r.tests
read_REPLY.right
read_REPLY.tests
read_SIGCHLD.right
read_SIGCHLD.tests
read_t0.right shell: optional support for read -t N.NNN, closes 10101 2017-07-20 16:09:31 +02:00
read_t0.tests shell: optional support for read -t N.NNN, closes 10101 2017-07-20 16:09:31 +02:00
read_t.right
read_t.tests