Skip to content

Commit

Permalink
Pass stdin handle to backtick process
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Apr 17, 2019
1 parent aa81f45 commit b118615
Show file tree
Hide file tree
Showing 2 changed files with 266 additions and 9 deletions.
4 changes: 3 additions & 1 deletion src/assignment_evaluator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Loading

0 comments on commit b118615

Please sign in to comment.