ddollar/foreman — pull request #209 by dbrock (2012-06-07 16:05:59+00:00)
Title: Pass commands through `sh -c` instead of parsing them manually

This patch does a few things:

* Remove the manual parsing of environment variable references. Instead, Procfile entries are now simply passed through a shell.
* Change `foreman run foo bar` to just invoke `foo bar` directly instead of passing it through a shell. (Presumably you are already running `foreman run` itself through a shell.) This means that `foreman run echo '$HOME'` now prints out `$HOME` (as expected). Single-word commands are still passed through a shell, so `foreman run 'echo $HOME'` prints out `/Users/daniel`.
* Clean up the test suite `process_spec.rb`. Some of the tests in there were not even testing anything.
* The single remaining pending test now passes, so the spec is now beautifully green.

I wasn't sure what to do on Windows, so I just left a little TODO comment there.