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

First README example does not work #13

Closed
romainreignier opened this issue Jul 7, 2021 · 2 comments
Closed

First README example does not work #13

romainreignier opened this issue Jul 7, 2021 · 2 comments

Comments

@romainreignier
Copy link

Hi!

Thank you for this nice tool.
I quite like the regex support to avoid the multiple spaces issue.

On your first example in the README:

ps aux | hck -d, -f1-3,5-

I have this output:

$ ps aux | hck -d, -f1-3,5-
thread 'main' panicked at 'range end index 3 out of range for slice of length 0', /home/runner/work/hck/hck/src/lib/core.rs:334:25
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

From my understanding, ps aux does not use a comma as delimiter so it does not work.

@sstadick
Copy link
Owner

sstadick commented Jul 7, 2021

Thanks for the bug report! I've updated the readme with working examples and fixed the zero splits found issue.

See v0.3.0

@sstadick sstadick closed this as completed Jul 7, 2021
@sstadick
Copy link
Owner

sstadick commented Jul 7, 2021

And please reopen or submit a new issue if you find anything 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants