From unknown Sun Jun 15 01:09:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34126: grep v. 3.1 =?UTF-8?Q?=E2=80=93?= unexpected error message "grep: i.: No such file or directory" Resent-From: Ricky Tigg Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Fri, 18 Jan 2019 20:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34126 X-GNU-PR-Package: grep X-GNU-PR-Keywords: To: 34126@debbugs.gnu.org X-Debbugs-Original-To: bug-grep@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154784324724980 (code B ref -1); Fri, 18 Jan 2019 20:28:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jan 2019 20:27:27 +0000 Received: from localhost ([127.0.0.1]:37054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkajd-0006Uo-6o for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkaja-0006UZ-Sg for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:55548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkajV-00072u-As for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkajU-0000jS-IN for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:17 -0500 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, 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 1gkajT-00070W-Mt for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:16 -0500 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:32905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkajT-0006vv-FZ for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:15 -0500 Received: by mail-oi1-x231.google.com with SMTP id c206so10011564oib.0 for ; Fri, 18 Jan 2019 12:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pzdVe7992CgzwPI3emUWwwsF/r5Y6G0soPPuJTj628M=; b=GjpOSCiJEcq0sUeZjD1LR5Y24RZ6Gr6NyL9oRkvKXsnYs/1zznFSGW/EhlVDaVdAmw 4SML0V5Rw0iKHcMLv0hikRKs5LqTWbgVHmH1IY1/IKdvGJLQ0+a+itl/8GaFuDkzMCHg ebnxWzyxg9UA+Gs31hNgTL/ayFrfbAB5iblQuNuQQb0ej4tEyRc0jm5MecmsTreB0Oz9 LhpYB43aXuiVm9Z5Uxr8tvfvaZowOvYK0nqK+EYuZhack3NIg78I02zLdoC54tsk3tjW IHLN1DqAZd7uu7AERM14uxIiX35F8T4Ws7EdVcMzH4eSydatmTP4dDGagFv8woq6n13y Z6Ug== 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=pzdVe7992CgzwPI3emUWwwsF/r5Y6G0soPPuJTj628M=; b=e20pMHw+j4vWaySTstlr65DSqPwyjRA+Wyf1t3SkWlC8xIi8UXyMUPB/hx+d8Pcqu+ estW+3GqhCaGV/xOkuq0cQoqx8ZP8vS6x5Zs3waHmu6BnGlewVw2+QjcLbw4WSYgvZ49 43BaosLX+Ec+D1a+1ng8vXUdYmWjL74evrxGZ9Uq3NjfHsfPXaR6FXbxKxAjuovvP8QJ Wl6t/0lUSJC5uK7qUgN6aWDjO692V7UvxjtQKkS3Mx+dU+XJl6TaBzHMFT03Jpsu2bkB DCOO49Vz0gU73FvnXEznqW4zAsYsCLOMSAKrbh7UzuzNAlbIhRIjohFnr7subwmuJYOB auWQ== X-Gm-Message-State: AJcUukcskrm2SNtpJjWw5FgI0HKfs+RdrHw2GlSqV4JTQRdz3pkrL0J2 bpcdj/sGmxYGLQbKrQOcqrEmNivWZKtGMUdvuoAHu7T7 X-Google-Smtp-Source: ALg8bN42qfM1Gz99oHhMcYoBsrTQlEPTxKEMUUBi2rdIuyR+29X81AWrOwra/6alWt43VifwdUDnAPq/Kse3pHHhrBQ= X-Received: by 2002:aca:720a:: with SMTP id p10mr807639oic.169.1547843233323; Fri, 18 Jan 2019 12:27:13 -0800 (PST) MIME-Version: 1.0 From: Ricky Tigg Date: Fri, 18 Jan 2019 21:27:02 +0100 Message-ID: Content-Type: multipart/alternative; boundary="00000000000017253f057fc156a0" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 1.0 (+) 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: -0.0 (/) --00000000000017253f057fc156a0 Content-Type: text/plain; charset="UTF-8" OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 Commands executed: $ dnf list|grep -Ei langpack | grep fi. glibc-langpack-fi.x86_64 2.28-26.fc29 @updates langpacks-fi.noarch 1.0-13.fc29 @System (...) $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." grep: i.: No such file or directory Using grep twice in the same command, the command's last grep is expected to produce targets, not an STDERR. Probably an issue. --00000000000017253f057fc156a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OS: F= edora; Component: grep.x86_64=C2=A0 3.1-8.fc29

Commands executed:

$ dnf list|grep -Ei langpack | grep fi.glibc-langpack-fi.x86_64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0 2.28-26.fc29=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 @updates
lan= gpacks-fi.noarch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 1.0-13.fc29=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0 =C2=A0=C2=A0 @System
(...)

$ dnf list|grep -Ei langpack | grep fi. |= grep "-fi."
grep: i.: No such file or directory
<= div>
Using gr= ep twice in the same command, the command's last grep is expected to produce targets= , not an STDERR. Probably an issue.
--00000000000017253f057fc156a0-- From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 18 15:37:40 2019 Received: (at control) by debbugs.gnu.org; 18 Jan 2019 20:37:40 +0000 Received: from localhost ([127.0.0.1]:37062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkatY-0006lU-9o for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:37:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkatV-0006lA-Le; Fri, 18 Jan 2019 15:37:38 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9FC7A86674; Fri, 18 Jan 2019 20:37:31 +0000 (UTC) Received: from [10.3.116.240] (ovpn-116-240.phx2.redhat.com [10.3.116.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38C4E5D6AA; Fri, 18 Jan 2019 20:37:31 +0000 (UTC) Subject: =?UTF-8?B?UmU6IGJ1ZyMzNDEyNjogZ3JlcCB2LiAzLjEg4oCTIHVuZXhwZWN0ZWQg?= =?UTF-8?Q?error_message_=22grep=3a_i=2e=3a_No_such_file_or_directory=22?= To: Ricky Tigg , 34126-done@debbugs.gnu.org References: From: Eric Blake Openpgp: preference=signencrypt Autocrypt: addr=eblake@redhat.com; keydata= xsBNBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV GmCx2Bop1LSblbvbrOm2bKpZdBPjncRNob73eTpIXEutvEaHH72LzpzksfcKM+M18cyRH+nP sAd98xIbVjm3Jm4k4d5oQyE2HwOur+trk2EcxTgdp17QapuWPwMfhaNq3runaX7x34zhABEB AAHNHkVyaWMgQmxha2UgPGVibGFrZUByZWRoYXQuY29tPsLAegQTAQgAJAIbAwULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAUCS8fL9QIZAQAKCRCnoWtKJSdDahBHCACbl/5FGkUqJ89GAjeX RjpAeJtdKhujir0iS4CMSIng7fCiGZ0fNJCpL5RpViSo03Q7l37ss+No+dJI8KtAp6ID+PMz wTJe5Egtv/KGUKSDvOLYJ9WIIbftEObekP+GBpWP2+KbpADsc7EsNd70sYxExD3liwVJYqLc Rw7so1PEIFp+Ni9A1DrBR5NaJBnno2PHzHPTS9nmZVYm/4I32qkLXOcdX0XElO8VPDoVobG6 gELf4v/vIImdmxLh/w5WctUpBhWWIfQDvSOW2VZDOihm7pzhQodr3QP/GDLfpK6wI7exeu3P pfPtqwa06s1pae3ad13mZGzkBdNKs1HEm8x6zsBNBEvHyWwBCADGkMFzFjmmyqAEn5D+Mt4P zPdO8NatsDw8Qit3Rmzu+kUygxyYbz52ZO40WUu7EgQ5kDTOeRPnTOd7awWDQcl1gGBXgrkR pAlQ0l0ReO57Q0eglFydLMi5bkwYhfY+TwDPMh3aOP5qBXkm4qIYSsxb8A+i00P72AqFb9Q7 3weG/flxSPApLYQE5qWGSXjOkXJv42NGS6o6gd4RmD6Ap5e8ACo1lSMPfTpGzXlt4aRkBfvb NCfNsQikLZzFYDLbQgKBA33BDeV6vNJ9Cj0SgEGOkYyed4I6AbU0kIy1hHAm1r6+sAnEdIKj cHi3xWH/UPrZW5flM8Kqo14OTDkI9EtlABEBAAHCwF8EGAEIAAkFAkvHyWwCGwwACgkQp6Fr SiUnQ2q03wgAmRFGDeXzc58NX0NrDijUu0zx3Lns/qZ9VrkSWbNZBFjpWKaeL1fdVeE4TDGm I5mRRIsStjQzc2R9b+2VBUhlAqY1nAiBDv0Qnt+9cLiuEICeUwlyl42YdwpmY0ELcy5+u6wz mK/jxrYOpzXKDwLq5k4X+hmGuSNWWAN3gHiJqmJZPkhFPUIozZUCeEc76pS/IUN72NfprZmF Dp6/QDjDFtfS39bHSWXKVZUbqaMPqlj/z6Ugk027/3GUjHHr8WkeL1ezWepYDY7WSoXwfoAL 2UXYsMAr/uUncSKlfjvArhsej0S4zbqim2ZY6S8aRWw94J3bSvJR+Nwbs34GPTD4Pg== Organization: Red Hat, Inc. Message-ID: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> Date: Fri, 18 Jan 2019 14:37:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 18 Jan 2019 20:37:31 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: control 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: -6.0 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR Content-Type: multipart/mixed; boundary="1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11"; protected-headers="v1" From: Eric Blake To: Ricky Tigg , 34126-done@debbugs.gnu.org Message-ID: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> Subject: =?UTF-8?B?UmU6IGJ1ZyMzNDEyNjogZ3JlcCB2LiAzLjEg4oCTIHVuZXhwZWN0ZWQg?= =?UTF-8?Q?error_message_=22grep=3a_i=2e=3a_No_such_file_or_directory=22?= References: In-Reply-To: --1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable tag 34126 notabug thanks On 1/18/19 2:27 PM, Ricky Tigg wrote: > OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 >=20 > Commands executed: >=20 > $ dnf list|grep -Ei langpack | grep fi. > glibc-langpack-fi.x86_64 2.28-26.fc29 @updates > langpacks-fi.noarch 1.0-13.fc29 @System > (...) >=20 > $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." > grep: i.: No such file or directory >=20 > Using grep twice in the same command, the command's last grep is expect= ed > to produce targets, not an STDERR. Probably an issue. Not an issue in grep, but in your attempt to use a pattern beginning with - in a way that grep cannot distinguish from options. That is, you asked grep to use the -f option, which takes an argument, so it used "i." as the argument for -f, and failed because there is no file named 'i.' in your current directory. (That's true whether you write -fi. or "-fi.", because the shell strips quoting before grep sees its argv[]). You want to use either of these formulations instead: grep -e -fi. grep -- -fi. where the "-e" option says to treat the next argv[] entry as a pattern, even if it otherwise would look like an option, and then continue finding further options; while the "--" argument says that no more options are present, and that all further command line arguments are treated according to their traditional positional usage). The difference becomes apparent in constructs like: grep -e -fi. -i # greps stdin case-insensitively for "-fi." grep -- -fi. -i # greps file ./-i case-sensitively for "-fi." --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11-- --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlxCOQoACgkQp6FrSiUn Q2pdcwf/Thk7ZqKVQVwTCejJ/yXVE9Pbovp6jewSARGiKcrz0ZDLITPIr5fIo+oy R5G+Hlo1Y9aXwqb1UF3aDtlnS1ohIe1dVXCMg75tJ0rJokJo4fH2QPFkB0RUfXaY P+UmVs/+1KCDTF5J789udi04CLCbTxVF6CsZ3rFVxaYuCXWhWhWLMBCkPZDiHPKL VLkh66B9gpjZ+pZyeAOa9OA0pZFHaDMvecXx4/j7l4cgyBKBUTSbIvQiHcCW25hN ghEn+4sXoms7pp1aduzePjTMb/+ZtGq4lIm1S7UH/a0x0UhjNXe3feAHLFVQhQ7n XFHO4RLWfwLabMkvC+deO3SvC6FKww== =JwLM -----END PGP SIGNATURE----- --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR-- From unknown Sun Jun 15 01:09:34 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ricky Tigg Subject: bug#34126: closed (Re: bug#34126: grep v. 3.1 =?UTF-8?Q?=E2=80=93?= unexpected error message "grep: i.: No such file or directory") Message-ID: References: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> X-Gnu-PR-Message: they-closed 34126 X-Gnu-PR-Package: grep X-Gnu-PR-Keywords: notabug Reply-To: 34126@debbugs.gnu.org Date: Fri, 18 Jan 2019 20:38:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1547843882-26056-1" This is a multi-part message in MIME format... ------------=_1547843882-26056-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34126: grep v. 3.1 =E2=80=93 unexpected error message "grep: i.: No such f= ile or directory" which was filed against the grep package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34126@debbugs.gnu.org. --=20 34126: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34126 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1547843882-26056-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34126-done) by debbugs.gnu.org; 18 Jan 2019 20:37:40 +0000 Received: from localhost ([127.0.0.1]:37060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkatY-0006lS-0R for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:37:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59696) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkatV-0006lA-Le; Fri, 18 Jan 2019 15:37:38 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9FC7A86674; Fri, 18 Jan 2019 20:37:31 +0000 (UTC) Received: from [10.3.116.240] (ovpn-116-240.phx2.redhat.com [10.3.116.240]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 38C4E5D6AA; Fri, 18 Jan 2019 20:37:31 +0000 (UTC) Subject: =?UTF-8?B?UmU6IGJ1ZyMzNDEyNjogZ3JlcCB2LiAzLjEg4oCTIHVuZXhwZWN0ZWQg?= =?UTF-8?Q?error_message_=22grep=3a_i=2e=3a_No_such_file_or_directory=22?= To: Ricky Tigg , 34126-done@debbugs.gnu.org References: From: Eric Blake Openpgp: preference=signencrypt Autocrypt: addr=eblake@redhat.com; keydata= xsBNBEvHyWwBCACw7DwsQIh0kAbUXyqhfiKAKOTVu6OiMGffw2w90Ggrp4bdVKmCaEXlrVLU xphBM8mb+wsFkU+pq9YR621WXo9REYVIl0FxKeQo9dyQBZ/XvmUMka4NOmHtFg74nvkpJFCD TUNzmqfcjdKhfFV0d7P/ixKQeZr2WP1xMcjmAQY5YvQ2lUoHP43m8TtpB1LkjyYBCodd+LkV GmCx2Bop1LSblbvbrOm2bKpZdBPjncRNob73eTpIXEutvEaHH72LzpzksfcKM+M18cyRH+nP sAd98xIbVjm3Jm4k4d5oQyE2HwOur+trk2EcxTgdp17QapuWPwMfhaNq3runaX7x34zhABEB AAHNHkVyaWMgQmxha2UgPGVibGFrZUByZWRoYXQuY29tPsLAegQTAQgAJAIbAwULCQgHAwUV CgkICwUWAgMBAAIeAQIXgAUCS8fL9QIZAQAKCRCnoWtKJSdDahBHCACbl/5FGkUqJ89GAjeX RjpAeJtdKhujir0iS4CMSIng7fCiGZ0fNJCpL5RpViSo03Q7l37ss+No+dJI8KtAp6ID+PMz wTJe5Egtv/KGUKSDvOLYJ9WIIbftEObekP+GBpWP2+KbpADsc7EsNd70sYxExD3liwVJYqLc Rw7so1PEIFp+Ni9A1DrBR5NaJBnno2PHzHPTS9nmZVYm/4I32qkLXOcdX0XElO8VPDoVobG6 gELf4v/vIImdmxLh/w5WctUpBhWWIfQDvSOW2VZDOihm7pzhQodr3QP/GDLfpK6wI7exeu3P pfPtqwa06s1pae3ad13mZGzkBdNKs1HEm8x6zsBNBEvHyWwBCADGkMFzFjmmyqAEn5D+Mt4P zPdO8NatsDw8Qit3Rmzu+kUygxyYbz52ZO40WUu7EgQ5kDTOeRPnTOd7awWDQcl1gGBXgrkR pAlQ0l0ReO57Q0eglFydLMi5bkwYhfY+TwDPMh3aOP5qBXkm4qIYSsxb8A+i00P72AqFb9Q7 3weG/flxSPApLYQE5qWGSXjOkXJv42NGS6o6gd4RmD6Ap5e8ACo1lSMPfTpGzXlt4aRkBfvb NCfNsQikLZzFYDLbQgKBA33BDeV6vNJ9Cj0SgEGOkYyed4I6AbU0kIy1hHAm1r6+sAnEdIKj cHi3xWH/UPrZW5flM8Kqo14OTDkI9EtlABEBAAHCwF8EGAEIAAkFAkvHyWwCGwwACgkQp6Fr SiUnQ2q03wgAmRFGDeXzc58NX0NrDijUu0zx3Lns/qZ9VrkSWbNZBFjpWKaeL1fdVeE4TDGm I5mRRIsStjQzc2R9b+2VBUhlAqY1nAiBDv0Qnt+9cLiuEICeUwlyl42YdwpmY0ELcy5+u6wz mK/jxrYOpzXKDwLq5k4X+hmGuSNWWAN3gHiJqmJZPkhFPUIozZUCeEc76pS/IUN72NfprZmF Dp6/QDjDFtfS39bHSWXKVZUbqaMPqlj/z6Ugk027/3GUjHHr8WkeL1ezWepYDY7WSoXwfoAL 2UXYsMAr/uUncSKlfjvArhsej0S4zbqim2ZY6S8aRWw94J3bSvJR+Nwbs34GPTD4Pg== Organization: Red Hat, Inc. Message-ID: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> Date: Fri, 18 Jan 2019 14:37:30 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR" X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Fri, 18 Jan 2019 20:37:31 +0000 (UTC) X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 34126-done 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: -6.0 (------) This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR Content-Type: multipart/mixed; boundary="1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11"; protected-headers="v1" From: Eric Blake To: Ricky Tigg , 34126-done@debbugs.gnu.org Message-ID: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> Subject: =?UTF-8?B?UmU6IGJ1ZyMzNDEyNjogZ3JlcCB2LiAzLjEg4oCTIHVuZXhwZWN0ZWQg?= =?UTF-8?Q?error_message_=22grep=3a_i=2e=3a_No_such_file_or_directory=22?= References: In-Reply-To: --1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable tag 34126 notabug thanks On 1/18/19 2:27 PM, Ricky Tigg wrote: > OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 >=20 > Commands executed: >=20 > $ dnf list|grep -Ei langpack | grep fi. > glibc-langpack-fi.x86_64 2.28-26.fc29 @updates > langpacks-fi.noarch 1.0-13.fc29 @System > (...) >=20 > $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." > grep: i.: No such file or directory >=20 > Using grep twice in the same command, the command's last grep is expect= ed > to produce targets, not an STDERR. Probably an issue. Not an issue in grep, but in your attempt to use a pattern beginning with - in a way that grep cannot distinguish from options. That is, you asked grep to use the -f option, which takes an argument, so it used "i." as the argument for -f, and failed because there is no file named 'i.' in your current directory. (That's true whether you write -fi. or "-fi.", because the shell strips quoting before grep sees its argv[]). You want to use either of these formulations instead: grep -e -fi. grep -- -fi. where the "-e" option says to treat the next argv[] entry as a pattern, even if it otherwise would look like an option, and then continue finding further options; while the "--" argument says that no more options are present, and that all further command line arguments are treated according to their traditional positional usage). The difference becomes apparent in constructs like: grep -e -fi. -i # greps stdin case-insensitively for "-fi." grep -- -fi. -i # greps file ./-i case-sensitively for "-fi." --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --1SCXuc7fWQvgEi1VMbUfva3ZNP5mSJn11-- --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlxCOQoACgkQp6FrSiUn Q2pdcwf/Thk7ZqKVQVwTCejJ/yXVE9Pbovp6jewSARGiKcrz0ZDLITPIr5fIo+oy R5G+Hlo1Y9aXwqb1UF3aDtlnS1ohIe1dVXCMg75tJ0rJokJo4fH2QPFkB0RUfXaY P+UmVs/+1KCDTF5J789udi04CLCbTxVF6CsZ3rFVxaYuCXWhWhWLMBCkPZDiHPKL VLkh66B9gpjZ+pZyeAOa9OA0pZFHaDMvecXx4/j7l4cgyBKBUTSbIvQiHcCW25hN ghEn+4sXoms7pp1aduzePjTMb/+ZtGq4lIm1S7UH/a0x0UhjNXe3feAHLFVQhQ7n XFHO4RLWfwLabMkvC+deO3SvC6FKww== =JwLM -----END PGP SIGNATURE----- --fzcxFh6EWMNLk6SqqK3410IQMWgOalvrR-- ------------=_1547843882-26056-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Jan 2019 20:27:27 +0000 Received: from localhost ([127.0.0.1]:37054 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkajd-0006Uo-6o for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:27 -0500 Received: from eggs.gnu.org ([209.51.188.92]:57302) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gkaja-0006UZ-Sg for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:23 -0500 Received: from lists.gnu.org ([209.51.188.17]:55548) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gkajV-00072u-As for submit@debbugs.gnu.org; Fri, 18 Jan 2019 15:27:17 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkajU-0000jS-IN for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:17 -0500 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, 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 1gkajT-00070W-Mt for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:16 -0500 Received: from mail-oi1-x231.google.com ([2607:f8b0:4864:20::231]:32905) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkajT-0006vv-FZ for bug-grep@gnu.org; Fri, 18 Jan 2019 15:27:15 -0500 Received: by mail-oi1-x231.google.com with SMTP id c206so10011564oib.0 for ; Fri, 18 Jan 2019 12:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=pzdVe7992CgzwPI3emUWwwsF/r5Y6G0soPPuJTj628M=; b=GjpOSCiJEcq0sUeZjD1LR5Y24RZ6Gr6NyL9oRkvKXsnYs/1zznFSGW/EhlVDaVdAmw 4SML0V5Rw0iKHcMLv0hikRKs5LqTWbgVHmH1IY1/IKdvGJLQ0+a+itl/8GaFuDkzMCHg ebnxWzyxg9UA+Gs31hNgTL/ayFrfbAB5iblQuNuQQb0ej4tEyRc0jm5MecmsTreB0Oz9 LhpYB43aXuiVm9Z5Uxr8tvfvaZowOvYK0nqK+EYuZhack3NIg78I02zLdoC54tsk3tjW IHLN1DqAZd7uu7AERM14uxIiX35F8T4Ws7EdVcMzH4eSydatmTP4dDGagFv8woq6n13y Z6Ug== 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=pzdVe7992CgzwPI3emUWwwsF/r5Y6G0soPPuJTj628M=; b=e20pMHw+j4vWaySTstlr65DSqPwyjRA+Wyf1t3SkWlC8xIi8UXyMUPB/hx+d8Pcqu+ estW+3GqhCaGV/xOkuq0cQoqx8ZP8vS6x5Zs3waHmu6BnGlewVw2+QjcLbw4WSYgvZ49 43BaosLX+Ec+D1a+1ng8vXUdYmWjL74evrxGZ9Uq3NjfHsfPXaR6FXbxKxAjuovvP8QJ Wl6t/0lUSJC5uK7qUgN6aWDjO692V7UvxjtQKkS3Mx+dU+XJl6TaBzHMFT03Jpsu2bkB DCOO49Vz0gU73FvnXEznqW4zAsYsCLOMSAKrbh7UzuzNAlbIhRIjohFnr7subwmuJYOB auWQ== X-Gm-Message-State: AJcUukcskrm2SNtpJjWw5FgI0HKfs+RdrHw2GlSqV4JTQRdz3pkrL0J2 bpcdj/sGmxYGLQbKrQOcqrEmNivWZKtGMUdvuoAHu7T7 X-Google-Smtp-Source: ALg8bN42qfM1Gz99oHhMcYoBsrTQlEPTxKEMUUBi2rdIuyR+29X81AWrOwra/6alWt43VifwdUDnAPq/Kse3pHHhrBQ= X-Received: by 2002:aca:720a:: with SMTP id p10mr807639oic.169.1547843233323; Fri, 18 Jan 2019 12:27:13 -0800 (PST) MIME-Version: 1.0 From: Ricky Tigg Date: Fri, 18 Jan 2019 21:27:02 +0100 Message-ID: Subject: =?UTF-8?Q?grep_v=2E_3=2E1_=E2=80=93_unexpected_error_message_=22grep=3A_i=2E=3A_?= =?UTF-8?Q?No_such_file_or_directory=22?= To: bug-grep@gnu.org Content-Type: multipart/alternative; boundary="00000000000017253f057fc156a0" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::231 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: -0.0 (/) --00000000000017253f057fc156a0 Content-Type: text/plain; charset="UTF-8" OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 Commands executed: $ dnf list|grep -Ei langpack | grep fi. glibc-langpack-fi.x86_64 2.28-26.fc29 @updates langpacks-fi.noarch 1.0-13.fc29 @System (...) $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." grep: i.: No such file or directory Using grep twice in the same command, the command's last grep is expected to produce targets, not an STDERR. Probably an issue. --00000000000017253f057fc156a0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
OS: F= edora; Component: grep.x86_64=C2=A0 3.1-8.fc29

Commands executed:

$ dnf list|grep -Ei langpack | grep fi.glibc-langpack-fi.x86_64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0= =C2=A0 2.28-26.fc29=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 @updates
lan= gpacks-fi.noarch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 1.0-13.fc29=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0 =C2=A0=C2=A0 @System
(...)

$ dnf list|grep -Ei langpack | grep fi. |= grep "-fi."
grep: i.: No such file or directory
<= div>
Using gr= ep twice in the same command, the command's last grep is expected to produce targets= , not an STDERR. Probably an issue.
--00000000000017253f057fc156a0-- ------------=_1547843882-26056-1-- From unknown Sun Jun 15 01:09:34 2025 X-Loop: help-debbugs@gnu.org Subject: bug#34126: closed (Re: bug#34126: grep v. 3.1 =?UTF-8?Q?=E2=80=93?= unexpected error message "grep: i.: No such file or directory") Resent-From: Ricky Tigg Original-Sender: "Debbugs-submit" Resent-CC: bug-grep@gnu.org Resent-Date: Mon, 21 Jan 2019 14:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34126 X-GNU-PR-Package: grep X-GNU-PR-Keywords: notabug To: 34126@debbugs.gnu.org Received: via spool by 34126-submit@debbugs.gnu.org id=B34126.154807948224371 (code B ref 34126); Mon, 21 Jan 2019 14:05:02 +0000 Received: (at 34126) by debbugs.gnu.org; 21 Jan 2019 14:04:42 +0000 Received: from localhost ([127.0.0.1]:39509 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glaBt-0006Kz-IS for submit@debbugs.gnu.org; Mon, 21 Jan 2019 09:04:42 -0500 Received: from mail-ot1-f50.google.com ([209.85.210.50]:37954) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glaBr-0006Km-2u for 34126@debbugs.gnu.org; Mon, 21 Jan 2019 09:04:39 -0500 Received: by mail-ot1-f50.google.com with SMTP id e12so20609586otl.5 for <34126@debbugs.gnu.org>; Mon, 21 Jan 2019 06:04:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=yq8wpLBEfqcDaQ6snRgoIspSuuQvVgC61088TwkYP64=; b=HkHJOp8x+SdbjesQbtc0zagGDcQtCAeAZulFApuvtATZ7q9yFj/D0w1XY5ZRjUvekd yqIDPEKTCdVxzTTJSoouqWlDOWGVU3KvVHKWLpxfsBes45/0/iLuXpGOYJqAYOpF+x7X +LN0+eF+6zxxqEeXkl605E7kPs8mqO8Z0iC9oC/SViJMnMpQhVmAYFrpWR7sHUk9cSJ/ YtQAIchpVFKvmb4sayRN3Rd19d0Y/ubELLxuL6LF7IWdqWFudDrn5IVD8JYdFuKro0iw 6vHnpfM+HK4So5eF/MVY8iNL2z5My/HCd+SsM9JB1FcCs2yEZsNj2Q4eVTYC4phRuQmz UaZw== 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; bh=yq8wpLBEfqcDaQ6snRgoIspSuuQvVgC61088TwkYP64=; b=d9wB4j33niZ0ruXqU/XDeMAnO214KhJAZnKr0UXUaTZ/xk9o6MMVGMY+3qAP9H8FcI +lwzU1/p2lw1a6YDFDN5vYo32/oZp+oSFqep8YM17UoD7AX+xY1kXbdTtcH1t4zmK3ep USIdYm6uE4ooNfcQBMdyPrM7ICxkQLsor7yPK1rgbCkFFMBneGFwwRCkIojZCYA4MQ72 oJpY0Wy+lfQmilZMBgr3ocds0mascD+Sx7jxMjCSM7ZgdgPOc8LP9JLc+Xsi0y/wWMGb qVFbV+BM0v4Igee2e0n31Zi0GfjEg+LPtyxmD/sLdmEMr06lBxbYw3s5z1mDUjfYXn0e SjLA== X-Gm-Message-State: AJcUukccs9rhnnM6nQHMJVDV2df5PFTMv0qob9exM3/MX8YPIX2Thiw6 DbkTvlCu34tUCMNACkBdCfhLCAK11bK7ROQnYssaP3u+ X-Google-Smtp-Source: ALg8bN6q9EJtXjKmmNfmvZMzUcjFQ+ODF4/N0sK2apKzmTAmvpix7UjjA+vc2zUEQ+aKmwtMqdtNNz1Er19zwlvVIMQ= X-Received: by 2002:a9d:22a:: with SMTP id 39mr20301525otb.354.1548079473220; Mon, 21 Jan 2019 06:04:33 -0800 (PST) MIME-Version: 1.0 References: <6e98e17c-6881-2230-ff53-09c5f5b21acc@redhat.com> In-Reply-To: From: Ricky Tigg Date: Mon, 21 Jan 2019 15:04:20 +0100 Message-ID: Content-Type: multipart/alternative; boundary="00000000000015df86057ff857d3" X-Spam-Score: 0.0 (/) 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 (-) --00000000000015df86057ff857d3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi. I can't be without thanking you =E2=80=93 *Eric Blake* =E2=80=93, both = for the relevance of your detailed explanation and the useful descriptions. Regards= . pe 18. tammik. 2019 klo 21.38 GNU bug Tracking System (help-debbugs@gnu.org= ) kirjoitti: > Your bug report > > #34126: grep v. 3.1 =E2=80=93 unexpected error message "grep: i.: No such= file or > directory" > > which was filed against the grep package, has been closed. > > The explanation is attached below, along with your original report. > If you require more details, please reply to 34126@debbugs.gnu.org. > > -- > 34126: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34126 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems > > > > ---------- Forwarded message ---------- > From: Eric Blake > To: Ricky Tigg , 34126-done@debbugs.gnu.org > Cc: > Bcc: > Date: Fri, 18 Jan 2019 14:37:30 -0600 > Subject: Re: bug#34126: grep v. 3.1 =E2=80=93 unexpected error message "g= rep: i.: > No such file or directory" > tag 34126 notabug > thanks > > On 1/18/19 2:27 PM, Ricky Tigg wrote: > > OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 > > > > Commands executed: > > > > $ dnf list|grep -Ei langpack | grep fi. > > glibc-langpack-fi.x86_64 2.28-26.fc29 @updates > > langpacks-fi.noarch 1.0-13.fc29 @System > > (...) > > > > $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." > > grep: i.: No such file or directory > > > > Using grep twice in the same command, the command's last grep is expect= ed > > to produce targets, not an STDERR. Probably an issue. > > Not an issue in grep, but in your attempt to use a pattern beginning > with - in a way that grep cannot distinguish from options. That is, you > asked grep to use the -f option, which takes an argument, so it used > "i." as the argument for -f, and failed because there is no file named > 'i.' in your current directory. (That's true whether you write -fi. or > "-fi.", because the shell strips quoting before grep sees its argv[]). > > You want to use either of these formulations instead: > > grep -e -fi. > grep -- -fi. > > where the "-e" option says to treat the next argv[] entry as a pattern, > even if it otherwise would look like an option, and then continue > finding further options; while the "--" argument says that no more > options are present, and that all further command line arguments are > treated according to their traditional positional usage). The > difference becomes apparent in constructs like: > > grep -e -fi. -i # greps stdin case-insensitively for "-fi." > grep -- -fi. -i # greps file ./-i case-sensitively for "-fi." > > -- > Eric Blake, Principal Software Engineer > Red Hat, Inc. +1-919-301-3226 > Virtualization: qemu.org | libvirt.org > > > > > ---------- Forwarded message ---------- > From: Ricky Tigg > To: bug-grep@gnu.org > Cc: > Bcc: > Date: Fri, 18 Jan 2019 21:27:02 +0100 > Subject: grep v. 3.1 =E2=80=93 unexpected error message "grep: i.: No suc= h file or > directory" > OS: *Fedora*; Component: grep.x86_64 3.1-8.fc29 > > Commands executed: > > $ dnf list|grep -Ei langpack | grep fi. > glibc-langpack-fi.x86_64 2.28-26.fc29 @updates > langpacks-fi.noarch 1.0-13.fc29 @System > (...) > > $ dnf list|grep -Ei langpack | grep fi. | grep "-fi." > grep: i.: No such file or directory > > Using grep twice in the same command, the command's last grep is expected > to produce targets, not an STDERR. Probably an issue. > --00000000000015df86057ff857d3 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi. I can't be without thanking you =E2=80=93 Eric = Blake =E2=80=93, both for the relevance of your detailed explanation an= d the useful descriptions. Regards.

pe 18. tammik. 2019 klo 21.38 GNU bu= g Tracking System (help-debbugs@gnu= .org) kirjoitti:
Your bug report

#34126: grep v. 3.1 =E2=80=93 unexpected error message "grep: i.: No s= uch file or directory"

which was filed against the grep package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 34126@debbugs.gnu.org.

--
34126: http://debbugs.gnu.org/cgi/bugreport.cgi?= bug=3D34126
GNU Bug Tracking System
Contact help-debb= ugs@gnu.org with problems



---------- Forwarded message ----------
From:=C2=A0Eric Blak= e <eblake@redhat.= com>
To:=C2=A0Ricky Tigg <ricky.tigg@gmail.com>, 34126-done@debbugs.gnu.org
= Cc:=C2=A0
Bcc:=C2=A0
Date:=C2=A0Fri, 18 Jan 2019 14:37:30 -0600
Su= bject:=C2=A0Re: bug#34126: grep v. 3.1 =E2=80=93 unexpected error message &= quot;grep: i.: No such file or directory"
tag 34126 notabug
thanks

On 1/18/19 2:27 PM, Ricky Tigg wrote:
> OS: *Fedora*; Component: grep.x86_64=C2=A0 3.1-8.fc29
>
> Commands executed:
>
> $ dnf list|grep -Ei langpack | grep fi.
> glibc-langpack-fi.x86_64=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2.28= -26.fc29=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0@updates
> langpacks-fi.noarch=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A01.0-13.fc29=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 @System
> (...)
>
> $ dnf list|grep -Ei langpack | grep fi. | grep "-fi."
> grep: i.: No such file or directory
>
> Using grep twice in the same command, the command's last grep is e= xpected
> to produce targets, not an STDERR. Probably an issue.

Not an issue in grep, but in your attempt to use a pattern beginning
with - in a way that grep cannot distinguish from options.=C2=A0 That is, y= ou
asked grep to use the -f option, which takes an argument, so it used
"i." as the argument for -f, and failed because there is no file = named
'i.' in your current directory.=C2=A0 (That's true whether you = write -fi. or
"-fi.", because the shell strips quoting before grep sees its arg= v[]).

You want to use either of these formulations instead:

grep -e -fi.
grep -- -fi.

where the "-e" option says to treat the next argv[] entry as a pa= ttern,
even if it otherwise would look like an option, and then continue
finding further options; while the "--" argument says that no mor= e
options are present, and that all further command line arguments are
treated according to their traditional positional usage).=C2=A0 The
difference becomes apparent in constructs like:

grep -e -fi. -i=C2=A0 =C2=A0 =C2=A0# greps stdin case-insensitively for &qu= ot;-fi."
grep -- -fi. -i=C2=A0 =C2=A0 =C2=A0# greps file ./-i case-sensitively for &= quot;-fi."

--
Eric Blake, Principal Software Engineer
Red Hat, Inc.=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0+1-919-301-3226
Virtualization:=C2=A0 qemu.org | libvirt.org




---------- Forwarded message ----------
From:=C2=A0Ricky Tig= g <ricky.tigg@= gmail.com>
To:=C2=A0bug-grep@gnu.org
Cc:=C2=A0
Bcc:=C2=A0
Date:=C2=A0Fri,= 18 Jan 2019 21:27:02 +0100
Subject:=C2=A0grep v. 3.1 =E2=80=93 unexpect= ed error message "grep: i.: No such file or directory"
OS: Fedora; Component: grep.x86_64=C2=A0 3.1-8.fc29

<= /div>
Commands executed:

$ dnf list|grep -Ei langpack | grep fi.
glibc= -langpack-fi.x86_64=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0 =C2=A0= 2.28-26.fc29=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0=C2=A0 @updates
langpacks-= fi.noarch=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 =C2=A0=C2=A0 1.0-13.fc29=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0 =C2=A0= =C2=A0 @System
(...)

$ dnf list|grep -Ei langpack | grep fi. | grep &quo= t;-fi."
grep: i.: No such file or directory

Using grep = twice in the same command, the command's last grep is expected to produce targets, not an = STDERR. Probably an issue.<= br>
--00000000000015df86057ff857d3--