Created
August 12, 2016 12:55
-
-
Save ArtemGr/285a57681e2127bc3e398ef39c53e2a2 to your computer and use it in GitHub Desktop.
BashOnWindows issue 861
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "" } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo foo | |
bash --help | |
echo bar |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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