Pass stdin handle to backtick process (#409)

This commit is contained in:
Casey Rodarmor 2019-04-16 19:52:16 -07:00 committed by GitHub
parent aa81f458d0
commit 792b7a249c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 266 additions and 9 deletions

View File

@ -141,9 +141,11 @@ impl<'a, 'b> AssignmentEvaluator<'a, 'b> {
) -> RunResult<'a, String> {
let mut cmd = Command::new(self.shell);
cmd.arg("-cu").arg(raw);
cmd.export_environment_variables(self.scope, dotenv, self.exports)?;
cmd.arg("-cu").arg(raw);
cmd.stdin(process::Stdio::inherit());
cmd.stderr(if self.quiet {
process::Stdio::null()

File diff suppressed because it is too large Load Diff