I came across a situation where i needed the exit code of last command but
before passing it through the pipe.
For example, running the following command would give the exit code 0, even if
the first command failed :
root@NTRTR:/tmp# wl -i eth0 assoclist | wc -l
wl: wl