diff options
author | Christian Eggers | 2020-06-29 17:57:24 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-01-01 14:30:58 +0100 |
commit | 94f6d1ece0b6d023f173c5b5141b92229a3830fa (patch) | |
tree | 9d5195918ea15756501bcfccaa098f6bdc2bd2ae /shell/ash_test/ash-vars/var_bash4.right | |
parent | fb957125d8aa83c9df6e54292327983a51ee7ffd (diff) | |
download | busybox-94f6d1ece0b6d023f173c5b5141b92229a3830fa.zip busybox-94f6d1ece0b6d023f173c5b5141b92229a3830fa.tar.gz |
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>
Diffstat (limited to 'shell/ash_test/ash-vars/var_bash4.right')
0 files changed, 0 insertions, 0 deletions