Peng Yu
2018-10-21 19:47:39 UTC
Hi,
wget returns the following exit code when it is dealing with pipe. But
it does not follow the common practice. Should this behavior be fixed?
$ wget -qO- http://httpbin.org/get | echo
$ echo ${PIPESTATUS[@]}
3 0
$ seq 10 | echo
$ echo ${PIPESTATUS[@]}
141 0
wget returns the following exit code when it is dealing with pipe. But
it does not follow the common practice. Should this behavior be fixed?
$ wget -qO- http://httpbin.org/get | echo
$ echo ${PIPESTATUS[@]}
3 0
$ seq 10 | echo
$ echo ${PIPESTATUS[@]}
141 0
--
Regards,
Peng
Regards,
Peng