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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: grep; Severity: wishlist; Reported by: Steven Penny <svnpenn@HIDDEN>; dated Fri, 12 Jul 2019 01:13:02 UTC; Maintainer for grep is bug-grep@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Paul Eggert <eggert@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 12 Jul 2019 01:12:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 11 21:12:23 2019
Received: from localhost ([127.0.0.1]:39081 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1hlk6p-0003fm-60
	for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 21:12:23 -0400
Received: from lists.gnu.org ([209.51.188.17]:39454)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <svnpenn@HIDDEN>) id 1hlk6n-0003ff-Qd
 for submit <at> debbugs.gnu.org; Thu, 11 Jul 2019 21:12:22 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:53398)
 by lists.gnu.org with esmtp (Exim 4.86_2)
 (envelope-from <svnpenn@HIDDEN>) id 1hlk6n-000129-0V
 for bug-grep@HIDDEN; Thu, 11 Jul 2019 21:12:21 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM
 autolearn=disabled version=3.3.2
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <svnpenn@HIDDEN>) id 1hlk6m-00068v-2Y
 for bug-grep@HIDDEN; Thu, 11 Jul 2019 21:12:20 -0400
Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:35183)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <svnpenn@HIDDEN>) id 1hlk6l-000676-UA
 for bug-grep@HIDDEN; Thu, 11 Jul 2019 21:12:20 -0400
Received: by mail-ot1-x32b.google.com with SMTP id j19so7858191otq.2
 for <bug-grep@HIDDEN>; Thu, 11 Jul 2019 18:12:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=message-id:date:from:to:subject:user-agent;
 bh=CYgPmvthL6jUZskN9JWW+zP3QCa+KIouyZ3wCqcm3ds=;
 b=WfNNUMoDDBqo4Rs8omysTgckOqHFIo6oWImXYL+poPl4zFQWef0Ie2onbN5MteoU2q
 ZigE6K0Y2q16XQ50b5Vzd6n0M+V/+Jv6XxTW7xa+fpnVmYsfjDiTUNzEJ3Hf+8pbkPM2
 OWVCiv34KzaE7S4lKpJSUh9MIKpLKgM8FI8Y3jmAMJwrGo6fB3I08LVS7CqF7dJxzaH0
 mRbtG5Po9pXTob6JCy3XrxXV9PgE/huXxW0Avoa/FNVV6UrHgBZ27+00etkaVfjer1I7
 jPr75X7wocOjBd3Gyleh0tciTXG2tkhvYeMkRh3brgAet6cxu/ePWlCedoPnm7sXzgTB
 BQ3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:message-id:date:from:to:subject:user-agent;
 bh=CYgPmvthL6jUZskN9JWW+zP3QCa+KIouyZ3wCqcm3ds=;
 b=gIxlRmom7WvF0yXwL0mSpX1FQRCwKqZiwpncVuYkSCxNL4IgiYt3VSo9bNwZXIy9AW
 0k+F/gm8B77a+fRzlD502SP+q5qmRF4PPAd47sOqJgIshsrhsQYbAzdrolEzwHsGt+CY
 ToGp8LoBMUqtkwnS1FaaCvMRBshClsjABpHqCSIzfw8IQUx0JQ/3w6JiHdvicFfKkzg6
 Sibm2RvnY0l4I8k3xkw96rwwGnVoS18oV0/dKLs+J7gYEbZK/AN0Eq9Q6kXCR7R/WYHo
 +5Fv3r1exewfQC261BVzeLG1rSzp8ctYJWY2HuSejdclZWti+QMFNtPQxzR8rMqFIad+
 4R+g==
X-Gm-Message-State: APjAAAWH2krBVM6eWt5+IWTk3Zdseg1o3/hCGP/Uc+Xyc3J7ajV9JeB1
 uRRZiPaILQuv+mkv+J0nC4aaPtsBOeU=
X-Google-Smtp-Source: APXvYqzNrnqUqT/nZoJW92TuPaq7U/3/8Pa66l35/tLNF8iWIRVPxQZqrXTMtSyw23FvHW2elLRa8w==
X-Received: by 2002:a9d:20c7:: with SMTP id x65mr5780893ota.138.1562893937753; 
 Thu, 11 Jul 2019 18:12:17 -0700 (PDT)
Received: from cEw ([2605:6000:9fc0:56:6045:8f05:def0:5b7])
 by smtp.gmail.com with ESMTPSA id e5sm2323565otl.60.2019.07.11.18.12.16
 for <bug-grep@HIDDEN>
 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256);
 Thu, 11 Jul 2019 18:12:17 -0700 (PDT)
Message-ID: <5d27de71.1c69fb81.fdddc.053d@HIDDEN>
Date: Thu, 11 Jul 2019 18:12:17 -0700 (PDT)
From: Steven Penny <svnpenn@HIDDEN>
X-Google-Original-From: Steven Penny
To: bug-grep@HIDDEN
Subject: Expand "no" options
Content-Type: text/plain; charset=utf8; format=flowed
User-Agent: Suede Mail/2.8.0 (github.com/cup/suede)
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-Received-From: 2607:f8b0:4864:20::32b
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

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.





Acknowledgement sent to Steven Penny <svnpenn@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-grep@HIDDEN. Full text available.
Report forwarded to bug-grep@HIDDEN:
bug#36612; Package grep. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 2 Jan 2020 09:45:02 UTC

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