From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.1 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id C2CA120248 for ; Sat, 23 Mar 2019 12:39:45 +0000 (UTC) Received: from localhost ([127.0.0.1]:42951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7fw8-0005qo-1O for normalperson@yhbt.net; Sat, 23 Mar 2019 08:39:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h7fw3-0005n9-5z for bug-gnulib@gnu.org; Sat, 23 Mar 2019 08:39:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h7fvy-0006Mk-Vz for bug-gnulib@gnu.org; Sat, 23 Mar 2019 08:39:37 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46990) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h7fvw-0006L6-Ag for bug-gnulib@gnu.org; Sat, 23 Mar 2019 08:39:32 -0400 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2CEF08830A; Sat, 23 Mar 2019 12:39:27 +0000 (UTC) Received: from [10.3.116.65] (ovpn-116-65.phx2.redhat.com [10.3.116.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5EA1E1001DC9; Sat, 23 Mar 2019 12:39:26 +0000 (UTC) Subject: Re: bug#34951: [PATCH] grep: a kwset matcher not work in a grep matcher To: Budi , Norihiro Tanaka References: <20190323080618.E6EB.27F6AC2D@kcn.ne.jp> <20190323114902.E6F6.27F6AC2D@kcn.ne.jp> 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: Date: Sat, 23 Mar 2019 07:39:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KNOFsrLXqVMtyarpXlxuyoN6VICNPRART" X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Sat, 23 Mar 2019 12:39:27 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.132.183.28 X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 34951@debbugs.gnu.org, bug-gnulib@gnu.org Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KNOFsrLXqVMtyarpXlxuyoN6VICNPRART Content-Type: multipart/mixed; boundary="KUETXhy6PFjvv4kK0hvmY4GHjTV5paGWc"; protected-headers="v1" From: Eric Blake To: Budi , Norihiro Tanaka Cc: 34951@debbugs.gnu.org, bug-gnulib@gnu.org Message-ID: Subject: Re: bug#34951: [PATCH] grep: a kwset matcher not work in a grep matcher References: <20190323080618.E6EB.27F6AC2D@kcn.ne.jp> <20190323114902.E6F6.27F6AC2D@kcn.ne.jp> In-Reply-To: --KUETXhy6PFjvv4kK0hvmY4GHjTV5paGWc Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 3/22/19 9:59 PM, Budi wrote: > How make grep walking through FS by scanning breadth first instead of >=20 > On 3/23/19, Budi wrote: >> How make grep walinh through FS by scanning breadth first instead of >> the usual depth >> >> On 3/23/19, Norihiro Tanaka wrote: >>> On Sat, 23 Mar 2019 08:06:35 +0900 >>> Norihiro Tanaka wrote: >>> >>>> A kwset matcher is not built in a grep matcher after token re-order = is Budi, Hijacking a tread on a posted patch to ask an unrelated question via top-posting is not very nice netiquette. Better is to start a new thread for asking questions, and to use bottom posting for technical list= s. That said, the answer to your question is that there is no way to change the way that grep walks the file system when using 'grep -r'. And when you consider that 'grep -r' is a GNU extension not required by POSIX (http://pubs.opengroup.org/onlinepubs/9699919799/utilities/grep.html), and that we are reluctant to bloat grep any further when 'find' already exists as the POSIX-sanctioned file walker, you are better off getting 'find' to do the traversal you want (where find or xargs is used to invoke plain 'grep' on the resulting files) rather than trying to convince us to patch 'grep -r' to have more flexibility. --=20 Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org --KUETXhy6PFjvv4kK0hvmY4GHjTV5paGWc-- --KNOFsrLXqVMtyarpXlxuyoN6VICNPRART Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEccLMIrHEYCkn0vOqp6FrSiUnQ2oFAlyWKP0ACgkQp6FrSiUn Q2rm4ggAn52MxuaJE52EBjp9rBxkBXiMcujTwN6GAfj7s8w1pqhTLn3NAM9WC9By fAzsFi41vlQPb2KutWnTpKaCN1fNOtRyQ2ALGcc6BCGMLxxKM+apgZwLQF5GVReQ GrH93doCoTvTOK4R5WRptT7ckvvs0QVgr5KBkEnobFuWA8BJ8ahrLtSowb0Cm5Jm CSpALFhlKbvXW6PXNkQJCADdwjcLRFRU6hwSx01uvyOZN9dfb0Zt+DUX0BY0cEDj 4LVDoaWz4WPVtdmFjecicnGT2y5WJVrwOW+ZsQQztVRBNdHKPbl9P4dsZOtEZqaq yvE4Wu2fz6i/mSmnSFGZ+R9LxM5XBw== =zNfe -----END PGP SIGNATURE----- --KNOFsrLXqVMtyarpXlxuyoN6VICNPRART--