Handle missing command argument

Bug #1189950 reported by Daniel Hahler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
run-one (Ubuntu)
Fix Released
Low
Dustin Kirkland 

Bug Description

When just running `run-one`, there's a strange error:

    flock: bad number: /home/user/.cache/run-one/68b329da9893e34099c7d8ad5cb9c940

The same applies to `keep-one-running`.

With `run-this-one` it is even more cryptic:

    lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /root/.gvfs
          Output information may be incomplete.
    lsof: status error on /home/user/.cache/run-one/68b329da9893e34099c7d8ad5cb9c940: No such file or directory
    lsof 4.86
     latest revision: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/
     latest FAQ: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/FAQ
     latest man page: ftp://lsof.itap.purdue.edu/pub/tools/unix/lsof/lsof_man
     usage: [-?abhKlnNoOPRtUvVX] [+|-c c] [+|-d s] [+D D] [+|-f[gG]] [+|-e s]
     [-F [f]] [-g [s]] [-i [i]] [+|-L [l]] [+m [m]] [+|-M] [-o [o]] [-p s]
    [+|-r [t]] [-s [p:s]] [-S [t]] [-T [t]] [-u s] [+|-w] [-x [fl]] [--] [names]
    Use the ``-h'' option to get more help information.
    flock: bad number: /home/user/.cache/run-one/68b329da9893e34099c7d8ad5cb9c940

The programs should stop with an error and display usage information instead.

Related branches

Revision history for this message
Dustin Kirkland  (kirkland) wrote :

Committed revision 35.

Changed in run-one (Ubuntu):
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Dustin Kirkland (kirkland)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package run-one - 1.10-0ubuntu1

---------------
run-one (1.10-0ubuntu1) saucy; urgency=low

  * No changes
  * Re-release, due to minor errors in release script
 -- Dustin Kirkland <email address hidden> Tue, 16 Jul 2013 14:55:49 -0500

Changed in run-one (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.