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 ash: fix for read $IFS splitting. Closes bug 235 2010-01-08 15:44:07 +01:00
read_ifs.tests ash: fix for read $IFS splitting. Closes bug 235 2010-01-08 15:44:07 +01:00
read_n.right
read_n.tests
read_r.right
read_r.tests ash testsuite: remove two inadvertent bashisms 2016-10-01 17:30:21 +02:00
read_REPLY.right shell: split read builtin from ash 2010-01-12 22:11:24 +01:00
read_REPLY.tests shell: split read builtin from ash 2010-01-12 22:11:24 +01:00
read_SIGCHLD.right ash,hush: fix SIGCHLD interrupting read builtin 2017-05-22 19:34:45 +02:00
read_SIGCHLD.tests ash,hush: fix SIGCHLD interrupting read builtin 2017-05-22 19:34:45 +02:00
read_t.right
read_t.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