aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorChristian Eggers <ceggers@arri.de>2020-06-29 17:57:24 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2021-01-01 14:30:58 +0100
commit94f6d1ece0b6d023f173c5b5141b92229a3830fa (patch)
tree9d5195918ea15756501bcfccaa098f6bdc2bd2ae /docs
parentfb957125d8aa83c9df6e54292327983a51ee7ffd (diff)
downloadbusybox-w32-94f6d1ece0b6d023f173c5b5141b92229a3830fa.tar.gz
busybox-w32-94f6d1ece0b6d023f173c5b5141b92229a3830fa.tar.bz2
busybox-w32-94f6d1ece0b6d023f173c5b5141b92229a3830fa.zip
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 'docs')
0 files changed, 0 insertions, 0 deletions