On 7/30/19 1:08 PM, Morgan McClure wrote: > ./a.out foo > /dev/null 2&>1; echo $? > returns 3 NOT as expected
You probably meant to use 2>&1. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/