Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cut command #45

Merged
merged 2 commits into from Mar 26, 2016
Merged

Add cut command #45

merged 2 commits into from Mar 26, 2016

Conversation

hgrecco
Copy link
Contributor

@hgrecco hgrecco commented Mar 25, 2016

All options are implemented except for -n

All options are implemented except for `-n`
@hgrecco
Copy link
Contributor Author

hgrecco commented Mar 25, 2016

As mentioned in the PR all options are implemented except for -n.

Additionally, I had to copy extra::io::fail because it was not compiling. Not a big deal, should be easy to replace once that is fixed upstream.

Tests are also included.

@ticki
Copy link
Contributor

ticki commented Mar 25, 2016

Additionally, I had to copy extra::io::fail because it was not compiling. Not a big deal, should be easy to replace once that is fixed upstream.

It compiles now. Just update your rustc.


// libextra is not compiling.
use std::process;
pub fn fail<'a>(s: &'a str, stderr: &mut io::Stderr) -> ! {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@ticki
Copy link
Contributor

ticki commented Mar 25, 2016

Very good code indeed. I left a bunch of comments.

@hgrecco
Copy link
Contributor Author

hgrecco commented Mar 26, 2016

Thanks a lot for your comments. I fixed all of them except when noted.

@ticki
Copy link
Contributor

ticki commented Mar 26, 2016

LFTM!

@ticki ticki merged commit 0aae66b into redox-os:master Mar 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants