diff options
author | Sören Tempel | 2021-11-17 15:12:25 +0100 |
---|---|---|
committer | Denys Vlasenko | 2021-12-19 23:17:52 +0100 |
commit | a05a3d5932b5002d0513adfa817b931dcc1686c0 (patch) | |
tree | 5e3509d5b25006156809eb4b8d7b8175bc3899ce /shell/hush_test/hush-redir | |
parent | f26eb796e228cbec754e9e24545f5b0a8a50aac1 (diff) | |
download | busybox-a05a3d5932b5002d0513adfa817b931dcc1686c0.zip busybox-a05a3d5932b5002d0513adfa817b931dcc1686c0.tar.gz |
ed: align output of read command with POSIX.1-2008
POSIX.1-2008 mandates the following regarding the read command:
If the read is successful, and -s was not specified, the number
of bytes read shall be written to standard output in the
following format:
"%d\n", <number of bytes read>
This commit aligns the output of busybox ed with POSIX.1-2008 by
removing the file name from the output for the read command.
This slipped through in 4836a0708fd0aaeb82871a3762b40fcf4b61e812.
function old new delta
.rodata 104203 104196 -7
readLines 409 388 -21
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-28) Total: -28 bytes
Signed-off-by: Sören Tempel <soeren+git@soeren-tempel.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-redir')
0 files changed, 0 insertions, 0 deletions