Skip to content

Conversation

@drbrain
Copy link
Member

@drbrain drbrain commented Jun 9, 2016

This allows any spawn option to be used with sh.

This also improves the printed command output when an ENV hash is supplied.

drbrain added 2 commits June 9, 2016 13:45
Given:

    env = {
      'MESSAGE' => 'hello world',
    }

    sh env, "echo $MESSAGE"

Previously `rake -t` would output:

    {"MESSAGE"=>"hello world"} echo $MESSAGE

Now it outputs:

    MESSAGE=hello world echo $MESSAGE
This allows any option spawn takes along with rake's special noop: and
verbose:.
@avdi
Copy link

avdi commented Jun 9, 2016

I am excite!

JRuby does not yet support spawn options sent to system so skip these
tests.
@hsbt
Copy link
Member

hsbt commented Jun 11, 2016

Looks good. I'm going to release this at Rake 11.2.0.

@hsbt hsbt merged commit 1b27eb2 into master Jun 11, 2016
@hsbt hsbt deleted the spawn-options-for-sh branch June 11, 2016 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants