Interesting, I had previously assumed that command line arguments were not supported -- that the underlying Open3.capture2 method did not pass the cmd to a shell. I'm wrong :banana: 

Looking at it in more detail, Open3.capture2 (ultimately via Process.spawn) fires up shell if a string is specified, and does not if an array of arguments is provided. We provide a string, hence fire up a shell, so arguments work. This isn't by design.

In addition, we're also running the 'script_post_processor' parameter thru File.expand_path, so specifying a pathless command prepends the current dir, so 'wc -c' is not supported (but '/usr/bin/wc -c' is).

Naturally there are no tests describing any of this behaviour.

Yuk :poop: