Public bug reported:

This is not a bug, but a feature request.

At the moment it is not clear if run-one exited with return value 1 or
the command failed with return value 1, e.g.:

$ run-one bash -c 'sleep 5; exit 1'; echo $?

The return value will always be '1', but I want to know, if run-one
returned '1' or the command returned '1'.

One could try using a return value, which is unlikely to be used by
other commands.

But best would be a verbose option '-v' and if set, run-one sends this
'run-one: the command is already running, exiting' to stderr.  And
possibly using '-v -v' also outputs the actual command that was skipped.

(Actually I think run-one should always send a message to stderr, if it
'fails', and one can use '-q' to make it silent.)

** Affects: run-one (Ubuntu)
     Importance: Undecided
         Status: New

-- 
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

Reply via email to