Skip to content

Feature Request: echo value of sh :out option #364

@avdi

Description

@avdi

Given the task foo, which uses the sh helper with Process.spawn-style options:

task "foo" do
  sh({ "FOO" => "BAR" }, "ls manuscript/*.md", out: "mdlist.txt")
end

Currently, running this task reveals environment variables in shell-command style, but not the output sink.

$ rake foo
FOO=BAR ls manuscript/*.md

Suggested behavior is to reveal the output sink as a simulated shell redirect:

$ rake foo
FOO=BAR ls manuscript/*.md > mdlist.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions