This is not unique to run-one; even bash is going to be ambiguous whether the exit code is for the bash process or the command it is running:
https://unix.stackexchange.com/questions/594392/after-command-execution- how-to-determine-whether-an-exit-code-has-been-set-by-b Improving run-one to give better error feedback is a good idea, although since the upstream is inactive atm, this would be best implemented via a community contribution, IMHO. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2096644 Title: Give run-one a verbose option To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/run-one/+bug/2096644/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs