Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ArtemGr
Created August 12, 2016 12:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ArtemGr/285a57681e2127bc3e398ef39c53e2a2 to your computer and use it in GitHub Desktop.
Save ArtemGr/285a57681e2127bc3e398ef39c53e2a2 to your computer and use it in GitHub Desktop.
BashOnWindows issue 861
C:\Users\Artemciy\Downloads>test_bash_bat.exe
Output {
status: ExitStatus(ExitStatus(0)),
stdout: "\r\nC:\\Users\\Artemciy\\Downloads>echo foo \r\nfoo\r\n\r\nC:\\Users\\Artemciy\\Downloads>bash --help \r\n\u{1e}\u{4}H\u{4}8\u{4}1\u{4}:\u{4}0\u{4}:\u{0} \u{0}0\u{0}x\u{0}8\u{0}0\u{0}0\u{0}7\u{0}0\u{0}0\u{0}0\u{0}6\u{0}\r\u{0}\r\u{0}\n\u{0}\r\nC:\\Users\\Artemciy\\Downloads>echo bar \r\nbar\r\n",
stderr: "" }
echo foo
bash --help
echo bar
fn main() {
use std::process::Command;
let output = Command::new("test_bash_bat.bat").output().expect("failed to execute process");
println! ("{:?}", output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment