GrayJack / coreutils

Core utils re-implementation for UNIX/UNIX-like systems written in Rust
Mozilla Public License 2.0
108 stars 40 forks source link

Create tee utility #137

Closed jeremyvii closed 3 years ago

jeremyvii commented 3 years ago

This PR begins implementing the tee utility. The -i flag has not been implemented, I was unsure how to best handle SIGINT and, unless I am misunderstanding the documentation, it seems that write ignores interrupts anyway.

-a|--append

jeremyvii commented 3 years ago

I followed this guide for the testing (which is why I am using theassert_cmd and tempfile crates). Although the tests are failing on various environments. I will look into these failures when I get a free moment.

jeremyvii commented 3 years ago

I was able to resolve the test failures aside from the cargo-deny failure.

GrayJack commented 3 years ago

Thanks, lgtm, let's merge it

bors r+

bors[bot] commented 3 years ago

Build succeeded: