From unknown Sat Jun 14 03:48:17 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#37604 <37604@debbugs.gnu.org> To: bug#37604 <37604@debbugs.gnu.org> Subject: Status: man page description of -i confused someone Reply-To: bug#37604 <37604@debbugs.gnu.org> Date: Sat, 14 Jun 2025 10:48:17 +0000 retitle 37604 man page description of -i confused someone reassign 37604 grep submitter 37604 Tom Limoncelli severity 37604 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 10:35:16 2019 Received: (at submit) by debbugs.gnu.org; 3 Oct 2019 14:35:16 +0000 Received: from localhost ([127.0.0.1]:40734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG2CK-00068b-71 for submit@debbugs.gnu.org; Thu, 03 Oct 2019 10:35:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:53560) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG0r6-0002wv-63 for submit@debbugs.gnu.org; Thu, 03 Oct 2019 09:09:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50186) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iG0r4-0006QP-Pp for bug-grep@gnu.org; Thu, 03 Oct 2019 09:09:16 -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,HTML_MESSAGE autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iG0r3-0002Pw-BQ for bug-grep@gnu.org; Thu, 03 Oct 2019 09:09:14 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:41699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iG0r3-0002Pn-6i for bug-grep@gnu.org; Thu, 03 Oct 2019 09:09:13 -0400 Received: by mail-qk1-x72c.google.com with SMTP id p10so2242818qkg.8 for ; Thu, 03 Oct 2019 06:09:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatexit.org; s=google; h=mime-version:from:date:message-id:subject:to; bh=hj87BLjaIEYyehcEI1eVIGlRdv6RNBipGWcHqPYbUvc=; b=drrIbIADxfQ/XXSXiEi04tCcBaqnby1bWSQWvPkveueQ+DlaGwnjJsRrLx0kzPPNR6 bK/OWY2euv5j9ve3P/vs9XI6F6FpffNjgeZ8kOaHuJfeYEqd7ee6Cx3GgoBMCJA2B62U m7oFEojKXwsT6gU5h5OzAjSSLzEudbXX+Bz1Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=hj87BLjaIEYyehcEI1eVIGlRdv6RNBipGWcHqPYbUvc=; b=HtzmfZ/G4/ILiDTyHwtlmQ5u7gPSXtciD+v/s5S2yPlBXFGAijXV+uBmdDh5RFX5OA ak0yfQiCYKun1QZSQP6qB6jcSYFqQYXLndvFXswLUe6MVb1xbzNfb9xxd2H6uY+i0Fth MGYHLBEyuuOaiZ7wZs/BdwCzC2GC1JazGPkWmd1SIDENbq/ezgdUxqHFsnD8BqUodKAX 86ghRyxRco2kSaHjL/GP6F8Ut5A80UvRNxiPwug5A00lH4QacFVHqMGORhiyAopA9KD6 AWTQy+s7bEFs691d8ohHnvR68WoV+CO1vY99VEF/tGd+QO3apJqHgdE20SocvvXm7c2H ZyWg== X-Gm-Message-State: APjAAAU25WDEvQyRKAyWPgZxzw32zWi8WtHa3Fh7f/FJyZuMWzm0BsjI Kcr4z0roYbf8sly/szOssxwEGHh2riWtijg5cSOsi5MHiCjTbQ== X-Google-Smtp-Source: APXvYqwzdXfo5BqBAhWZVdRj2vkRuvHsBYKhab/V86ZXnM9Y3Y27rYObWnvPTtaem9nc8zjLW68LvT824Qe/rU/dU6A= X-Received: by 2002:a37:a24d:: with SMTP id l74mr4004775qke.200.1570108150511; Thu, 03 Oct 2019 06:09:10 -0700 (PDT) MIME-Version: 1.0 From: Tom Limoncelli Date: Thu, 3 Oct 2019 09:08:59 -0400 Message-ID: Subject: man page description of -i confused someone To: bug-grep@gnu.org Content-Type: multipart/alternative; boundary="0000000000009211510594014a9e" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::72c X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 03 Oct 2019 10:35:15 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) --0000000000009211510594014a9e Content-Type: text/plain; charset="UTF-8" There's an interesting question about grep posted on StackOverflow.com: https://stackoverflow.com/questions/45717127 The user was confused why "-i" didn't apply to the NAMES of the files on the command line. Obviously this is a misunderstanding of the separation of duties between the shell and the commands (shell expands wildcards, not the command). The top ranked answer for the question gently explained the difference. That said, I do take pity on the person, who may have been an early beginner or possibly not a native English speaker. The man page says: *-i*, *--ignore-case* Ignore case distinctions in both the PATTERN and the input files. Taking off my developer hat and putting on my writer/author hat, I have to agree that the man page could be phrased better. I think the person got caught up by seeing the word "files" instead of "contents". (I could also make the case that the fact that stdin isn't really a file means the sentence is inaccurate.) My suggestion is to change the description to be: Ignore case distinctions in both the PATTERN and the contents being searched. even better would be to break it into multiple sentences. This would make it perfectly clear: Ignore case during the search. Case is ignored in both the input contents PATTERN and the contents being searched. Tom -- Email: tal@whatexit.org Work: tlimoncelli@StackOverflow.com Blog: http://EverythingSysadmin.com/ --0000000000009211510594014a9e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Th= ere's an interesting question about grep posted on StackOverflow.com:



The user was confused = why "-i" didn't apply=C2=A0to the NAMES of the files on the c= ommand line.=C2=A0 Obviously this is a misunderstanding of the separation o= f duties between the shell and the commands (shell expands wildcards, not t= he command).=C2=A0 The top ranked answer for the question gently explained = the difference.

That said, I do take pity=C2=A0on = the person, who may have been an early beginner or possibly not a native En= glish speaker.=C2=A0 The man page says:


=C2=A0=C2=A0 =C2=A0 =C2=A0 -i, --ignore-case<= /b>

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ignore= case distinctions in both the PAT= TERN and the input

=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 files.=

Taking off my developer hat and putting on my writer/author hat= , I have to agree that the man page could be phrased better.=C2=A0 I think = the person got caught up by seeing the word "files" instead of &q= uot;contents". (I could also make the case that the fact that stdin is= n't really a file means the sentence is inaccurate.)

My suggestion is to change the description to be:

=C2=A0 =C2=A0Ignore case distinctions in both the PATTERN and the co= ntents being searched.

even better would be to= break it into multiple sentences. This would make it perfectly clear:

=C2=A0 =C2=A0Ignore case during the search. Case = is ignored in both the input contents PATTERN and the contents being search= ed.

Tom

-= -
Email: tal@whatexit.org =C2=A0 =C2=A0Wo= rk: tlimoncelli@StackOverflow.com
Blog: =C2=A0http://EverythingSysadmin.com/
<= /div>
--0000000000009211510594014a9e-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 18:25:44 2019 Received: (at 37604-done) by debbugs.gnu.org; 3 Oct 2019 22:25:44 +0000 Received: from localhost ([127.0.0.1]:41399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG9Xb-00035h-TQ for submit@debbugs.gnu.org; Thu, 03 Oct 2019 18:25:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:51096) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iG9XW-00035M-LW for 37604-done@debbugs.gnu.org; Thu, 03 Oct 2019 18:25:39 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id F31FB16022E; Thu, 3 Oct 2019 15:25:31 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VOks_fAWM4So; Thu, 3 Oct 2019 15:25:31 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 26F2D160238; Thu, 3 Oct 2019 15:25:31 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id H6VDmqtdjSIV; Thu, 3 Oct 2019 15:25:31 -0700 (PDT) Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 05CA516022E; Thu, 3 Oct 2019 15:25:31 -0700 (PDT) Subject: Re: bug#37604: man page description of -i confused someone To: Tom Limoncelli References: From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: <8bad1bd7-fb7e-4490-242f-4905351d8c62@cs.ucla.edu> Date: Thu, 3 Oct 2019 15:25:30 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------9CE1D9D8E0A2C94D1BB73736" Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 37604-done Cc: 37604-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) This is a multi-part message in MIME format. --------------9CE1D9D8E0A2C94D1BB73736 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Thanks for the bug report. I installed the attached, which should make things clearer, albeit a bit more tersely than you suggested. --------------9CE1D9D8E0A2C94D1BB73736 Content-Type: text/x-patch; charset=UTF-8; name="0001-grep-tighten-i-doc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="0001-grep-tighten-i-doc.patch" >From 53389bc57cc30ae1454ff48245cf63a703f02024 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Thu, 3 Oct 2019 15:23:33 -0700 Subject: [PATCH] grep: tighten -i doc * doc/grep.in.1: * doc/grep.texi (Matching Control): * src/grep.c (usage): Make it clearer that -i affects patterns and data, but not file names (Bug#37604). --- doc/grep.in.1 | 3 ++- doc/grep.texi | 3 ++- src/grep.c | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/grep.in.1 b/doc/grep.in.1 index 4a3e274..a2cbf5c 100644 --- a/doc/grep.in.1 +++ b/doc/grep.in.1 @@ -250,7 +250,8 @@ option, search for all patterns given. The empty file contains zero patterns, and therefore matches nothing. .TP .BR \-i ", " \-\^\-ignore\-case -Ignore case distinctions, so that characters that differ only in case +Ignore case distinctions in patterns and input data, +so that characters that differ only in case match each other. .TP .BR \-v ", " \-\^\-invert\-match diff --git a/doc/grep.texi b/doc/grep.texi index e6e0dbe..f5edc72 100644 --- a/doc/grep.texi +++ b/doc/grep.texi @@ -198,7 +198,8 @@ The empty file contains zero patterns, and therefore matches nothing. @opindex -y @opindex --ignore-case @cindex case insensitive search -Ignore case distinctions, so that characters that differ only in case +Ignore case distinctions in patterns and input data, +so that characters that differ only in case match each other. Although this is straightforward when letters differ in case only via lowercase-uppercase pairs, the behavior is unspecified in other situations. For example, uppercase ``S'' has an diff --git a/src/grep.c b/src/grep.c index ef6abb8..4b6b465 100644 --- a/src/grep.c +++ b/src/grep.c @@ -1926,7 +1926,7 @@ Pattern selection and interpretation:\n"), getprogname ()); printf (_("\ -e, --regexp=PATTERNS use PATTERNS for matching\n\ -f, --file=FILE take PATTERNS from FILE\n\ - -i, --ignore-case ignore case distinctions\n\ + -i, --ignore-case ignore case distinctions in patterns and data\n\ -w, --word-regexp match only whole words\n\ -x, --line-regexp match only whole lines\n\ -z, --null-data a data line ends in 0 byte, not newline\n")); -- 2.21.0 --------------9CE1D9D8E0A2C94D1BB73736-- From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 03 20:48:17 2019 Received: (at 37604-done) by debbugs.gnu.org; 4 Oct 2019 00:48:17 +0000 Received: from localhost ([127.0.0.1]:41486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGBlX-0000OS-VR for submit@debbugs.gnu.org; Thu, 03 Oct 2019 20:48:17 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:36337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGAI4-0004Lh-RT for 37604-done@debbugs.gnu.org; Thu, 03 Oct 2019 19:13:45 -0400 Received: by mail-qk1-f169.google.com with SMTP id y189so4139210qkc.3 for <37604-done@debbugs.gnu.org>; Thu, 03 Oct 2019 16:13:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatexit.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=6mMGHaBQOopBA4UjaUE9iqIBxaQ/zzE1HkVD03qB5/U=; b=5J66DVNwSCheo7xNdb3m5Q9bh+2/Bm8zMtooNjP8sQrn39JGAA/r5tt8SKZRO4Lp/5 0wGxLbqXgK2BJ5Q0G+q+6vfA5CfInKvtHVUtxrnxgnp+j2GOCUS7Fmuabu0aadkuAMiK 53CEsbN92dW/CTTuLkX6SyrX33PUIQeIMULE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=6mMGHaBQOopBA4UjaUE9iqIBxaQ/zzE1HkVD03qB5/U=; b=MVQLpIYR7TmJSbupc6GsEMF9tx5gCb2HU24X5mSncUnghpAY/Jvc3Dv91pnwP0lMny 1mF0yNTND6Pgu843vPq0AXssJwBeGdy0k43Cxhpa2wdvbBLuluzmYH8Pd5zWf9gkeD/y DEyqHItZI57UXtpLaSUK9HmVbLJlYbF2veeNFfavnbZB11SeLy8LZ1zjneot2NpxbW0V uaTykInFxJQM9cxKK/5p87mVs2IZfe5v4Qog1BF3ahLz5iMykxiGfiPVM92dEqtxtnY4 KNm337RpSMin31SHBV65ci/pLBtMx+arLaDnfr9CwHhF5O5at0km6dThoT5ZcKkAg+nh U3cg== X-Gm-Message-State: APjAAAXs2itLAd6dRv1o6nD5BCPNFe87lIX4ExF9w7UYl7Xietljpkk6 z9x2p7g7zzv0ApI6Ql+K+mM193QfyGB9Ytqu3fUnmA== X-Google-Smtp-Source: APXvYqwYXwQd6ALSzspTDgmYrqmG9aMsY5qMU2F3cdoRDBmegDH7yDzncs1xTvLZzJrAnRC+6yGnecXMZKP8iooRbIA= X-Received: by 2002:a37:a310:: with SMTP id m16mr7054681qke.123.1570144418666; Thu, 03 Oct 2019 16:13:38 -0700 (PDT) MIME-Version: 1.0 References: <8bad1bd7-fb7e-4490-242f-4905351d8c62@cs.ucla.edu> In-Reply-To: <8bad1bd7-fb7e-4490-242f-4905351d8c62@cs.ucla.edu> From: Tom Limoncelli Date: Thu, 3 Oct 2019 19:13:27 -0400 Message-ID: Subject: Re: bug#37604: man page description of -i confused someone To: Paul Eggert Content-Type: multipart/alternative; boundary="000000000000529c67059409bcc7" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 37604-done X-Mailman-Approved-At: Thu, 03 Oct 2019 20:48:15 -0400 Cc: 37604-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000529c67059409bcc7 Content-Type: text/plain; charset="UTF-8" Thanks! On Thu, Oct 3, 2019 at 6:25 PM Paul Eggert wrote: > Thanks for the bug report. I installed the attached, which should make > things clearer, albeit a bit more tersely than you suggested. > -- Email: tal@whatexit.org Work: tlimoncelli@StackOverflow.com Blog: http://EverythingSysadmin.com/ --000000000000529c67059409bcc7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks!

On Thu, Oct 3, 2019 at 6:25 PM Paul Eggert <eggert@cs.ucla.edu> wrote:
Thanks for the bug repo= rt. I installed the attached, which should make
things clearer, albeit a bit more tersely than you suggested.


--
--000000000000529c67059409bcc7-- From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 04 05:30:11 2019 Received: (at submit) by debbugs.gnu.org; 4 Oct 2019 09:30:11 +0000 Received: from localhost ([127.0.0.1]:41758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGJuc-0004YS-PS for submit@debbugs.gnu.org; Fri, 04 Oct 2019 05:30:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:54605) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGJua-0004YK-Gt for submit@debbugs.gnu.org; Fri, 04 Oct 2019 05:30:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50758) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iGJuZ-0002hm-Fd for bug-grep@gnu.org; Fri, 04 Oct 2019 05:30:08 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: ** X-Spam-Status: No, score=2.2 required=5.0 tests=BAYES_50,FREEMAIL_FROM, KHOP_HELO_FCRDNS,RDNS_DYNAMIC autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iGJuX-0006tC-W3 for bug-grep@gnu.org; Fri, 04 Oct 2019 05:30:07 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:47726 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iGJuX-0006sI-OI for bug-grep@gnu.org; Fri, 04 Oct 2019 05:30:05 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iGJuT-000suO-QO for bug-grep@gnu.org; Fri, 04 Oct 2019 11:30:01 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: bug-grep@gnu.org From: Stephane Chazelas Subject: Re: bug#37604: man page description of -i confused someone Date: Fri, 4 Oct 2019 10:14:47 +0100 Message-ID: <20191004091447.e5d7umbm7tp7wnow@chaz.gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: NeoMutt/20171215 Content-Disposition: inline In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-Spam-Score: -1.0 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.0 (--) 2019-10-03 09:08:59 -0400, Tom Limoncelli: [...] > *-i*, *--ignore-case* > > Ignore case distinctions in both the PATTERN and the input > > files. > > > Taking off my developer hat and putting on my writer/author hat, I have to > agree that the man page could be phrased better. I think the person got > caught up by seeing the word "files" instead of "contents". (I could also > make the case that the fact that stdin isn't really a file means the > sentence is inaccurate.) [...] While it's obvious when you know how shell glob expansion works that grep -ie pattern -- *.txt won't match pattern against the contents of foo.TXT (unless you enable the "nocaseglob" option of some shells), it's less clear in grep -i -r --include='*.txt' pattern . I would have just written: Ignore case distinctions in the PATTERN and the input -- Stephane From debbugs-submit-bounces@debbugs.gnu.org Fri Oct 04 09:34:08 2019 Received: (at 37604) by debbugs.gnu.org; 4 Oct 2019 13:34:08 +0000 Received: from localhost ([127.0.0.1]:41862 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGNii-00040G-3h for submit@debbugs.gnu.org; Fri, 04 Oct 2019 09:34:08 -0400 Received: from mail-qk1-f175.google.com ([209.85.222.175]:36967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iGNif-0003zl-Vb for 37604@debbugs.gnu.org; Fri, 04 Oct 2019 09:34:06 -0400 Received: by mail-qk1-f175.google.com with SMTP id u184so5790186qkd.4 for <37604@debbugs.gnu.org>; Fri, 04 Oct 2019 06:34:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=whatexit.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qbdep5Fhz0kcCMBDN4sdNFGbAmXMLzPWTxVWOlj8mCY=; b=oYRwVyQRv5MNZBLkXtFAwRMf2PfCj+H3lFjqSeRQt5ly2g6sKcMrzyDpLZjO/x6JhH qciFrQt51nOBDzMfgUZMZrWPJL4CPteVIYx21UjpSlZ8+nH1U6DJpVHlB4kRU+P3ausc BuCwrfSerK/bRQPOdqhrTxyFt/jVJB1M/XcFE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qbdep5Fhz0kcCMBDN4sdNFGbAmXMLzPWTxVWOlj8mCY=; b=KPiwm4ZmPrtYQscdgeDLRfzQMNDJ9rHpLDEP8hoJo3WvEthR3OTge1PFxbbVeLTOS0 kE7r5Xm2VPkCWvER6RekUMSonpd554LG934RQTQNRpLOoiS1fGNpAQGuyHPgfVFVkT7W z7x+PcdJZJCVeDvYIh/iAkj43EWtFc2znHiAEvnwziitsbGYXYzx2tH3OZrp29RFMD4M ZU9krK8whnOfIdtgghEfaXU5NnLxxKr24etD+iwAn41Xvntn8sDOKN6fnl70fDai9DOZ lJ+vDFMHs4TstkW/ZW7e2BqvNpfRoCHZds/0dlD2yfIqhEM7pCPSZ0FnmCklfyqK9JHL fgfA== X-Gm-Message-State: APjAAAXgr3YyYMSPWMngwVRfEuLVH+6rtmjKUh7sW1QiwnN2Qtct/nhQ T09jT8SnzCNBo9fmF+fQURdW42W0LXzMPZ3Ny/BbTA== X-Google-Smtp-Source: APXvYqzPEtGLh1aVfkXOZ9J9KvS8gyAVKV7NF3EGo0wQyopp/atZgTI64Jj2fO9zSkL4pMJNJDwcz/11MDYfqUpfjgc= X-Received: by 2002:a37:a310:: with SMTP id m16mr9825730qke.123.1570196039884; Fri, 04 Oct 2019 06:33:59 -0700 (PDT) MIME-Version: 1.0 References: <20191004091447.e5d7umbm7tp7wnow@chaz.gmail.com> In-Reply-To: <20191004091447.e5d7umbm7tp7wnow@chaz.gmail.com> From: Tom Limoncelli Date: Fri, 4 Oct 2019 09:33:48 -0400 Message-ID: Subject: Re: bug#37604: man page description of -i confused someone To: Stephane Chazelas Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 37604 Cc: 37604@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On Fri, Oct 4, 2019 at 5:31 AM Stephane Chazelas wrote: > > > I would have just written: > > Ignore case distinctions in the PATTERN and the input I like that phrasing the best! -- Email: tal@whatexit.org Work: tlimoncelli@StackOverflow.com Blog: http://EverythingSysadmin.com/ From unknown Sat Jun 14 03:48:17 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Nov 2019 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator