CaptnCodr / Fli

Execute CLI commands from your F# code in F# style!
MIT License
155 stars 5 forks source link

BASH pipe #54

Closed CaptnCodr closed 10 months ago

CaptnCodr commented 10 months ago

BASH does not accept pipes so:

seq { "test.txt" }
|> Seq.iter (fun file ->
    cli {
        Shell BASH
        Command $"{file} | echo"
        WorkingDirectory __SOURCE_DIRECTORY__
    }
    |> Command.execute
    |> Output.printText)

Does nothing.

CaptnCodr commented 10 months ago

Occured in tests while fiddling around in #52.

CaptnCodr commented 10 months ago

It does work with: $"echo '{file}' | cat" Like in the bash, so it works as expected.