GNU bug report logs - #36612
Expand "no" options

Previous Next

Package: grep;

Reported by: Steven Penny <svnpenn <at> gmail.com>

Date: Fri, 12 Jul 2019 01:13:02 UTC

Severity: wishlist

Full log


View this message in rfc822 format

From: Steven Penny <svnpenn <at> gmail.com>
To: 36612 <at> debbugs.gnu.org
Subject: bug#36612: Expand "no" options
Date: Thu, 11 Jul 2019 18:12:17 -0700 (PDT)
Grep does not have a way to disable "-i", "-n" or "-r" options. Those options
could look like this:

   -N, --no-line-number
   -O, --no-ignore-case
   -S, --no-recursive

The single letter choices are not ideal, but "-I" and "-R" were already taken.
If these options existed, you could write a function like this:

   grep_bravo() {
      grep -i -n -r "$@"
   }

then if you passed the new arguments like this:

   grep_bravo -N -O -S charlie delta.txt

your arguments would override the function arguments, as they come after.





This bug report was last modified 3 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.