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

when patterns are only supplied with -e, a filename is treated as the implicit pattern #11

Closed
barneyb opened this issue Jul 13, 2024 · 0 comments · Fixed by #13
Closed
Assignees
Labels
bug Something isn't working

Comments

@barneyb
Copy link
Owner

barneyb commented Jul 13, 2024

Passing -e mishandles a filename, if present, treating it as the pattern. lgrep -e Cli src/*.rs and lgrep Cli src/*.rs should be equivalent, but lgrep considers the first (globbed) filename to be a pattern. If a single filename is specified (or the glob only matches one) like lgrep -e Cli src/lib.rs, the filename is considered a pattern, and waits to filter STDIN.

@barneyb barneyb added the bug Something isn't working label Jul 13, 2024
@barneyb barneyb self-assigned this Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant