diff options
author | Eicke Herbertz | 2021-06-05 11:42:06 +0000 |
---|---|---|
committer | Denys Vlasenko | 2021-06-05 18:06:47 +0200 |
commit | 1b30c63dfdd4f31faa6deda69345bf07f23aa334 (patch) | |
tree | 42f9ff40c089d97d3fd1fbb3df76cb717a3b175c /coreutils/id.c | |
parent | c0f8113f86871f40daee690d7dd944bd5a31d95b (diff) | |
download | busybox-1b30c63dfdd4f31faa6deda69345bf07f23aa334.zip busybox-1b30c63dfdd4f31faa6deda69345bf07f23aa334.tar.gz |
shell: also do word splitting when -d DELIM is used
The original commit 3bef5d89b0 introduced an additional check
for an unset `opt_d` before doing word splitting. I'm unsure
why it's there in the first place, but the commit message also
describes a different behaviour than what -d actually does in
bash, while the code mostly does the right thing.
`opt_d` sets the line delimiter for read to stop reading and
should not affect word splitting.
Testcase:
$ echo qwe rty | { read -d Z a b; echo a:$a b:$b; }
a:qwe b:rty
function old new delta
shell_builtin_read 1314 1304 -10
Signed-off-by: Eicke Herbertz <wolletd@posteo.de>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/id.c')
0 files changed, 0 insertions, 0 deletions