Command exit status is not delivered to the caller.
This issue is very easy to re-produce:
xfce4-terminal --disable-server --command "bash -c 'sleep 5 ; exit 1'"
printf "Exit status is %s\n" "$?"
Should print 1, prints 0.
This issue is very easy to re-produce:
xfce4-terminal --disable-server --command "bash -c 'sleep 5 ; exit 1'"
printf "Exit status is %s\n" "$?"
Should print 1, prints 0.