bash q

bash q

Erez D erez0001 at gmail.com
Thu Jun 20 16:01:52 IDT 2013


how can i pipe one command to another and get the return value from the
first

e.g.
make | tee log ; x=$?

x holds the return value of 'tee'
however i want the return value of 'make'


any idea ?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20130620/524d94b5/attachment.html>


More information about the Linux-il mailing list