Public bug reported: I have been using "run-this-one" to call a program with multiple arguments, and this stopped working after upgrading to Saucy.
It appears to be related to this change: http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/saucy/run-one/saucy/revision/1.1.7 Using $@ is different from using $CMD (after CMD="$@"). The first one handles positional arguments, but the second one is just a string (see e.g. http://osr600doc.sco.com/en/SHL_automate/_Passing_to_shell_script.html). I think the flock line(s) should be reverted to flock -xn "$FLAG" "$@" again. (Note that there's no "-c" here, which requires a single argument). TEST CASE: % run-this-one ssh localhost "printf '%s\n' 'on line one' two 3" onnlinenonentwon3n% Quoting the command with run-this-one works around this: % run-this-one "ssh localhost \"printf '%s\n' 'on line one' two 3\"" on line one two 3 WORKS (flock directly, without -c): % flock -xn /tmp/flag ssh localhost "printf '%s\n' 'on line one' two 3" on line one two 3 WORKS (flock directly, with -c): % flock -xn /tmp/flag -c "ssh localhost \"printf '%s\n' 'on line one' two 3\"" on line one two 3 If the current behavior should be kept (which I would not recommend), run-this-one should test if it is being passed a single argument only then. Funnily it appears that this was meant to fix another bug reported by me (bug 1189950). ProblemType: Bug DistroRelease: Ubuntu 13.10 Package: run-one 1.13-0ubuntu1 [modified: usr/bin/run-one] ProcVersionSignature: Ubuntu 3.11.0-12.18-generic 3.11.3 Uname: Linux 3.11.0-12-generic x86_64 ApportVersion: 2.12.5-0ubuntu1 Architecture: amd64 Date: Fri Oct 11 00:29:57 2013 InstallationDate: Installed on 2012-05-28 (500 days ago) InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) MarkForUpload: True PackageArchitecture: all SourcePackage: run-one UpgradeStatus: Upgraded to saucy on 2013-10-08 (2 days ago) ** Affects: run-one (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug saucy ** Summary changed: - run-this-one changed command handling (requires a single command now) / shell arg + run-this-one changed command handling (requires a single command now) / shell arg issue -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1238318 Title: run-this-one changed command handling (requires a single command now) / shell arg issue To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/run-one/+bug/1238318/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs