t0024: avoid losing exit status to pipes