Using GLE 4.2.4c with Ghostscript 9.10 on Ubuntu 14.04
In some cases GLE returns with exit status code = 0 even though the ghostscript process failed and terminated with exit code 1.
To reproduce this behaviour execute the following .gle file (see attached files):
gle -d pdf ghostscriptErrorWithGleCode0.gle
then look at the exit code with
echo $?
I also included an example which returns the correct exit status code. This example requires the file emptyFile.dat:
gle -d pdf ghostscriptErrorWithGleCode1.gle