busybox/shell/hush_test/hush-misc/echo_write_error.tests
Denys Vlasenko 8ee2adab21 echo: do not retry on write errors
function                                             old     new   delta
echo_main                                            297     336     +39
stpcpy                                                 -      22     +22
run_pipe                                            1561    1566      +5
pseudo_exec_argv                                     187     192      +5
hush_exit                                             75      80      +5
------------------------------------------------------------------------------
(add/remove: 3/0 grow/shrink: 4/0 up/down: 98/0)               Total: 76 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2011-02-07 02:03:51 +01:00

8 lines
87 B
Plaintext
Executable File

trap "" PIPE
{
sleep 1
echo Cant write this - get EPIPE
echo Ok: $? >&2
} | { true; }