Indeed, the POSIX standard says:

  If n is specified, but its value is not between 0 and 255
  inclusively, the exit status is undefined.

Please replace "exit -1" by "exit 255".

Thanks -Ralf.

Reply via email to