Acceptable return codes unexpected behaviour

I am testing out RMS Task Manager. Specifically the “acceptable return codes” for Command tasks.

It seems the command always returns code 0, even if I issue command “exit 1”, “exit 42”, “return 1”, etc.

What I have tried:

  • having “acceptable return codes” set to only include 0, and script is simply “exit 1”; expected: Command fails; actuality: Command succeeds
  • having “acceptable return codes” set to only include 0, and script is simply “return 1”
  • having “acceptable return codes” set to only include 10, and script is simply “exit 10”; expected: Command succeeds; actuality: Command fails

What seems to happen is that the return code is always 0, and the actual exit code is not checked.

Is this a bug or what am I doing wrong here?


Indeed, there are some issues with the exit codes returned by the shell. When using custom exit codes, it returns code 0. The team is aware of this issue. They are currently working on it and the fix should be included in the future firmware releases.

Apologies for any inconvenience that this may have caused.

Kind Regards,

Hi Andzej,

Alright, good to have it confirmed at least.

Do you have any timeline of when a fix can be expected?

Kind Regards


Unfortunately, we don’t have defined timelines for when this issue will be resolved. Therefore, I cannot provide a specific date for the fix, but the RnD team is actively working on it.

Kind Regards,

This topic was automatically closed after 15 days. New replies are no longer allowed.