Zend certified PHP/Magento developer

Error code 140 in GNU tr

I’m trying to debug a tr (version 8.30) command that fails only in specific conditions. The failure is with an exitcode 140, but I have no other information.

The manpage and info only mention that “An exit status of zero indicates success, and a nonzero value indicates failure.”

In the tr source code, I can’t find an obvious source of the error code. I also can’t find a description for 140 in the standard errno.h codes.

Is there a place where I can find a definition of this error code?


For more context, this is originally in the Nextflow workflow management system: the original command is cat in_file | tr "t" "n" > out_file, which is written (by Nextflow) to a bash file as:

cat in_file | tr "     " "
" > out_file

and then run with bash (in a specific environment). It runs successfully on many files, but systematically fails for one specific file; if I rerun this command outside of the Nextflow environment it is successful. Understanding the error code might help me identify what’s different about this file or this Nextflow environment that causes an error.