summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-vars/var_bash4.right
diff options
context:
space:
mode:
authorChristian Eggers2020-06-29 17:57:24 +0200
committerDenys Vlasenko2021-01-01 14:30:58 +0100
commit94f6d1ece0b6d023f173c5b5141b92229a3830fa (patch)
tree9d5195918ea15756501bcfccaa098f6bdc2bd2ae /shell/ash_test/ash-vars/var_bash4.right
parentfb957125d8aa83c9df6e54292327983a51ee7ffd (diff)
downloadbusybox-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