t0005: work around strange $? in ksh when program terminated by a signal