Skip to content

Commit

Permalink
Implement &|: Stdout and Stderr Piping (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
hgoldstein authored and mmstick committed Jul 7, 2017
1 parent 8e0b1e3 commit 9d5cb19
Show file tree
Hide file tree
Showing 3 changed files with 202 additions and 106 deletions.
32 changes: 22 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/parser/pipelines.rs
Expand Up @@ -188,6 +188,10 @@ pub fn collect(possible_error: &mut Option<&str>, args: &str) -> Pipeline {
let _ = args_iter.next();
redir_found!(RedirMode::Stdout(RedirectFrom::Both));
},
Some(&b'|') => {
let _ = args_iter.next();
job_found!(RedirectFrom::Both, true);
},
_ => job_found!(RedirectFrom::Stdout, false)
}
},
Expand Down

0 comments on commit 9d5cb19

Please sign in to comment.