diff options
| author | Ron Yorston <rmy@pobox.com> | 2025-06-29 13:33:24 +0100 |
|---|---|---|
| committer | Ron Yorston <rmy@pobox.com> | 2025-06-29 13:33:24 +0100 |
| commit | e07a73a1502b0aba8fde7d9e491a3f8cc42dc341 (patch) | |
| tree | bc75937c8c23ddb986fc20a15748371b7bb621d8 /scripts/basic | |
| parent | b9fa01c547dc09ff26cb45d8c54cd2c5c5701142 (diff) | |
| download | busybox-w32-e07a73a1502b0aba8fde7d9e491a3f8cc42dc341.tar.gz busybox-w32-e07a73a1502b0aba8fde7d9e491a3f8cc42dc341.tar.bz2 busybox-w32-e07a73a1502b0aba8fde7d9e491a3f8cc42dc341.zip | |
ash: bring 'read' built-in closer to bash
Commit 8e6991733 (ash: fix 'read' shell built-in (1)) noted
discrepancies between upstream BusyBox, busybox-w32 and bash.
It aligned busybox-w32 with upstream BusyBox. Apply further
changes in busybox-w32 to align 'read' more closely with bash.
- When a timeout occurs before a newline in the input stream,
capture and save the text collected so far.
- Return an exit code of 142 on timeout.
Also, since our implementation of poll(2) never sets errno to
EINTR the code to handle this case can be omitted.
Saves 16 bytes in the 64-bit build, adds 16 in 32-bit.
(GitHub issue #502)
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
