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

grep: repeated -e and -f options #643

Open
mknos opened this issue Jun 6, 2024 · 0 comments
Open

grep: repeated -e and -f options #643

mknos opened this issue Jun 6, 2024 · 0 comments
Labels
Priority: low get to this whenever Program: grep The grep program Status: stalled something is blocking progress Type: bug an existing feature does not work

Comments

@mknos
Copy link
Contributor

mknos commented Jun 6, 2024

  • Standard grep command allows -e PATTERN and -f FILE to appear multiple times[1]
  • Currently if -e or -f is repeated the value is overridden and no warning or error output is produced
  • Secondly, patterns from -e and -f are expected to be combined (GNU manual explains that "If [-e] option is used multiple times or is combined with the -f option, search for all patterns given.")
  • Currently the documented behaviour of this grep will ignore -e pattern if -f FILE is set; the code could be improved to combine the patterns from -e and -f to follow the standard better
  1. https://pubs.opengroup.org/onlinepubs/009604299/utilities/grep.html --- "Multiple -e and -f options shall be accepted"
@briandfoy briandfoy added Type: bug an existing feature does not work Priority: low get to this whenever Program: grep The grep program labels Jun 6, 2024
@briandfoy briandfoy added the Status: stalled something is blocking progress label Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: low get to this whenever Program: grep The grep program Status: stalled something is blocking progress Type: bug an existing feature does not work
Projects
None yet
Development

No branches or pull requests

2 participants