in reply to Re^2: Detecting failed piped command run via ssh
in thread Detecting failed piped command run via ssh

When you say there is only one entry in @results, doea that one entry contain output from bzip2, or is it from PIPESTATUS? It could just be that bzip2 is not terminating the record with "\n", in which case inserting a dummy echo after the bzip2 should do the trick.
  • Comment on Re^3: Detecting failed piped command run via ssh