in reply to Re: Different values when using $? to detect seg faults
in thread Different values when using $? to detect seg faults

That's correct. '&' invokes a subshell and *always* returns 0. It can't get the return value of the subshell or the shell's command because it doesn't wait for the subshell to finish.
--
jpg
  • Comment on Re^2: Different values when using $? to detect seg faults