From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 20:49:23 2017 Received: (at submit) by debbugs.gnu.org; 3 Sep 2017 00:49:23 +0000 Received: from localhost ([127.0.0.1]:44275 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doJ6J-00074r-G0 for submit@debbugs.gnu.org; Sat, 02 Sep 2017 20:49:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:56582) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doJ6H-00074e-LS for submit@debbugs.gnu.org; Sat, 02 Sep 2017 20:49:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doJ67-0007Ey-GL for submit@debbugs.gnu.org; Sat, 02 Sep 2017 20:49: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=3.1 required=5.0 tests=BAYES_50,FORGED_MUA_MOZILLA, FREEMAIL_FROM,HTML_MESSAGE,T_DKIM_INVALID,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:50963) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1doJ67-0007Eu-Cz for submit@debbugs.gnu.org; Sat, 02 Sep 2017 20:49:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1doJ62-0003Sy-7O for bug-grep@gnu.org; Sat, 02 Sep 2017 20:49:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1doJ5x-00079O-FT for bug-grep@gnu.org; Sat, 02 Sep 2017 20:49:06 -0400 Received: from sonic307-8.consmr.mail.ir2.yahoo.com ([87.248.110.33]:40902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1doJ5x-00078w-7j for bug-grep@gnu.org; Sat, 02 Sep 2017 20:49:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s2048; t=1504399738; bh=ziszZXn6J/uNTV4OhsSeS8yCbaH1N7+dFYJjd3Fue3k=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=CnxVJFT1bXu21sUmMeckdZ6le0YR/iowUUZmJuyges0TXI0xQYfVxxP5CoNMEOuSJgvB7NM5W2M6z1x7RRQ2MfVP0113FROxz5EXwrIfAeBFvjCydsq2NZhJJtLhj/ko3EWNS9GiDu01jzm0CFSLbcglVo3qXjROZnal+DQxP4RbIG8/Yp1DwgofD+ARHI3f/TC5+/Q7soNQK1YYc40daoaWNYqNkZVXSe/pQvq/WjmhqUPYXtUw7Nif3C6mJNrFhujkKCIsSHnBS02tExaw0g5GnImUQlaqnCDypDEJGFWzggA288R/RguW5vGtClyD+3srSTGAb/0SL9LR9SlKPQ== X-YMail-OSG: Nd6IhjIVM1nTIG1fMgjvR6DMoLdtIyoMrpCbPUZnreMqmNTMjSDAisUnATLm5AQ Ying0Q5o.tVpAffYDzOlPGVX1AvylVnH5ezRDnq4zWITaFuq1KetssTAWspMiYvGvdyJG.ZuAXqb HQogxUzrznFTBymQ_O06eXONYf4Mo08eyM9mSPJCvi4ylJmm.lo0mqluEd9j0aySSUA00.U2QCc2 kSspJ9WqqfFH9ZST_TiOHpnNvSEHw7IMFhBcR6zUh1o_f.G5v0td7xkkbokc4Q8UpG02c_2QBAmH a_XRVcDhYCU.hjU605ebyRjzZMuqTUllCE_LucAOfrbN5WB.yb6ky1FN5tdhDG99tBojVg1K43yo hEpMI2I6Lc7bFK9WMJXBYOlosaslmF4V4usv77oCsD5.bCWzByfszF2n9NLRcgM23D6.o2Bvri74 MVDVlkz0bvTZEYaM1NBP6V7TEBZb2fgyPjpi0cRGarL5znVBBFs.M Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ir2.yahoo.com with HTTP; Sun, 3 Sep 2017 00:48:58 +0000 Date: Sun, 3 Sep 2017 00:47:16 +0000 (UTC) From: Camion SPAM To: "bug-grep@gnu.org" Message-ID: <360840458.1144774.1504399636542@mail.yahoo.com> Subject: A gnu extension for gnu grep MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1144773_69933351.1504399636541" References: <360840458.1144774.1504399636542.ref@mail.yahoo.com> X-Mailer: WebService/1.1.10495 YahooMailNeo Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36 Content-Length: 3559 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -2.8 (--) 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: , Reply-To: Camion SPAM Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.8 (--) ------=_Part_1144773_69933351.1504399636541 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello,=C2=A0 for the use with xargs -0, gnu find has a -print0 option allowing the user = to process files even having the character in their name. however, in = one wants to make =C3=A0 check on the content, this doesn't work anymore := =C2=A0One can write=C2=A0find -print0 | xargs -0 grep -l= | tr '\n' '\0' | xargs -0 ...to have de second xargs allows files= with or other special characters in their names, but this won't work = with files with in their name. For this reason, I suggest we add a gnu --print0 option to grep (to be used= with -l) which will separate the filenames produced with grep -l, with characters instead of characters, in order to allow the correct pr= ocessing of files with a in their names. One might object that making a file with an character in it's name is = stupid, but it is always possible to create one by mistake, juste with a wr= ong quote matching in shell commands or scripts. Best regards,=C2=A0 Camion ------=_Part_1144773_69933351.1504399636541 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello, =

for the use with xa= rgs -0, gnu find has a -print0 option allowing the user to process files ev= en having the <LF> character in their name. however, in one wants to = make =C3=A0 check on the content, this doesn't work anymore : 
One can write&= nbsp;
<= font face=3D"Courier New, courier, monaco, monospace, sans-serif" id=3D"yui= _3_16_0_ym19_1_1503622148334_171703">find <DIR> <CONDITIONS> -p= rint0 | xargs -0 grep -l <REGEXP> | tr '\n' '\0' | xargs -0 ...
to ha= ve de second xargs allows files with <SP> or other special characters= in their names, but this won't work with files with <LF> in their na= me.
For t= his reason, I suggest we add a gnu --print0 option to grep (to be used with= -l) which will separate the filenames produced with grep -l, with <NULL= > characters instead of <LF> characters, in order to allow the cor= rect processing of files with a <LF> in their names.

One might= object that making a file with an <LF> character in it's name is stu= pid, but it is always possible to create one by mistake, juste with a wrong= quote matching in shell commands or scripts.

Best regards, 

Camion
------=_Part_1144773_69933351.1504399636541-- From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 02 21:40:54 2017 Received: (at 28334-done) by debbugs.gnu.org; 3 Sep 2017 01:40:54 +0000 Received: from localhost ([127.0.0.1]:44343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doJuA-0008Vq-AQ for submit@debbugs.gnu.org; Sat, 02 Sep 2017 21:40:54 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:52706) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1doJu8-0008Vc-Ev for 28334-done@debbugs.gnu.org; Sat, 02 Sep 2017 21:40:52 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 5A2B81606DD; Sat, 2 Sep 2017 18:40:46 -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 wyxrI4ivZNFj; Sat, 2 Sep 2017 18:40:40 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id DA824160994; Sat, 2 Sep 2017 18:40:40 -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 FdStMj5LE-EZ; Sat, 2 Sep 2017 18:40:40 -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 BB80F16098D; Sat, 2 Sep 2017 18:40:40 -0700 (PDT) Subject: Re: bug#28334: A gnu extension for gnu grep To: Camion SPAM , 28334-done@debbugs.gnu.org References: <360840458.1144774.1504399636542.ref@mail.yahoo.com> <360840458.1144774.1504399636542@mail.yahoo.com> From: Paul Eggert Organization: UCLA Computer Science Department Message-ID: Date: Sat, 2 Sep 2017 18:40:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <360840458.1144774.1504399636542@mail.yahoo.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 28334-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: -2.3 (--) It sounds like grep -Z does what you want, so I'm boldly closing this bug report. From unknown Sat Jun 21 10:39:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 01 Oct 2017 11:24:05 +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