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

GrepOption.F.i is not seems to be working #59

Closed
yanyige opened this Issue Nov 21, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@yanyige

yanyige commented Nov 21, 2018

Hi, all:
When i use List lines = Unix4j.grep(Grep.Options.i.F, target, file). toLineList(); it seems to return nothing to me, while Grep.Options.i.n/while Grep.Options.n.F works well. It seems to occur problem when -F used with i

@terzerm

This comment has been minimized.

Member

terzerm commented Nov 23, 2018

Thanks for reporting this. I will check and try to reproduce. Btw it is best practice to always report bugs with a unit test that reproduces the problem ;-)

@terzerm terzerm self-assigned this Nov 23, 2018

@terzerm terzerm added the bug label Nov 23, 2018

terzerm added a commit that referenced this issue Nov 23, 2018

@terzerm terzerm added invalid and removed bug labels Nov 23, 2018

@terzerm

This comment has been minimized.

Member

terzerm commented Nov 23, 2018

Could not be reproduced. Seems to be working fine, see
GrepTest.testFixedStringWithIgnoreCase()

@yanyige Check your path argument, grep may be looking in the wrong directory and not find the file. E.g. try with absolute path.

@terzerm terzerm closed this Nov 23, 2018

terzerm added a commit that referenced this issue Nov 24, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment