Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawn options for sh #138

Merged
merged 3 commits into from
Jun 11, 2016
Merged

Spawn options for sh #138

merged 3 commits into from
Jun 11, 2016

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.

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
Development

Successfully merging this pull request may close these issues.

3 participants