[julia-users] Re: run command inserting spurious newlines into return values

2016-10-18 Thread jason . bates
Piping the powershell output to Write-Host was sufficient to get it to work for .xml files, but it broke on .gz files. However, following the suggestion here: (https://github.com/JuliaPackaging/WinRPM.jl/pull/81), I changed the download function to a call to BinDeps.download_cmd, and that worke

[julia-users] Re: run command inserting spurious newlines into return values

2016-10-17 Thread Tony Kelman
Powershell has types for xml, so maybe telling it to expect an xml result (or convert the string to xml) would result in different output formatting?

[julia-users] Re: run command inserting spurious newlines into return values

2016-10-17 Thread jason . bates
So, it turns out it's not the run command, as I originally thought. After more digging, I discovered that powershell formats output differently depending on whether it is outputting to a console or to another process, and that when it outputs to another process it auto-formats the output. This