<div dir="ltr"><div><div><div><div><div>how can i pipe one command to another and get the return value from the first<br></div><div><br></div><div>e.g.<br></div></div></div>make | tee log ; x=$?<br><br></div>x holds the return value of 'tee'<br>
</div>however i want the return value of 'make'<br><br><br>any idea ?<br><br><br></div>