I use wget to download a big file to two FIFOs like that:
wget <wget-args> -O - | tee -a "$fifo1" >> "$fifo2"
I want to retrieve the error code of wget on failure.
set -o pipefail returns error code of the rightmost command in a pipe so I can't be sure that the error code comes from wget.
So how can I do it in ash?
wgetpassed further toteeand call toechois kind'a transparent? – K. Koovalsky Jul 12 '18 at 12:57;ends the first command. – terdon Jul 12 '18 at 13:43wgetis piped totee.( wget ...; echo ... >result ) | tee ...– Kusalananda Jul 12 '18 at 13:43