From unknown Thu Sep 11 06:33:53 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#52367 <52367@debbugs.gnu.org> To: bug#52367 <52367@debbugs.gnu.org> Subject: Status: 27.2; lgrep and grep-files-aliases Reply-To: bug#52367 <52367@debbugs.gnu.org> Date: Thu, 11 Sep 2025 13:33:53 +0000 retitle 52367 27.2; lgrep and grep-files-aliases reassign 52367 emacs submitter 52367 Maxence Dutielt severity 52367 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 20:11:57 2021 Received: (at submit) by debbugs.gnu.org; 8 Dec 2021 01:11:57 +0000 Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mulUy-0007sa-U1 for submit@debbugs.gnu.org; Tue, 07 Dec 2021 20:11:57 -0500 Received: from lists.gnu.org ([209.51.188.17]:54006) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mulE9-0007Sk-5z for submit@debbugs.gnu.org; Tue, 07 Dec 2021 19:54:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42672) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mulE8-0004G0-UI for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 19:54:32 -0500 Received: from st43p00im-ztdg10073201.me.com ([17.58.63.177]:48401) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mulE7-00029z-27 for bug-gnu-emacs@gnu.org; Tue, 07 Dec 2021 19:54:32 -0500 Received: from [192.168.1.13] (lfbn-lil-1-1030-172.w90-103.abo.wanadoo.fr [90.103.102.172]) by st43p00im-ztdg10073201.me.com (Postfix) with ESMTPSA id C09AB221DCA; Wed, 8 Dec 2021 00:54:27 +0000 (UTC) Message-ID: Date: Wed, 8 Dec 2021 01:54:26 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: fr From: Maxence Dutielt Subject: 27.2; lgrep and grep-files-aliases To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.425, 18.0.790 definitions=2021-12-07_07:2021-12-06, 2021-12-07 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1030 mlxscore=0 mlxlogscore=919 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2009150000 definitions=main-2112080004 Received-SPF: pass client-ip=17.58.63.177; envelope-from=m@dutielt.com; helo=st43p00im-ztdg10073201.me.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, FROM_FMBLA_NEWDOM=1.499, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.8 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 07 Dec 2021 20:11:55 -0500 Cc: ofv@wanadoo.es 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.8 (/) emacs -Q M-x lgrep Search for: foo Search for "foo" in files matching wildcard (default all): all In directory: ~/foobar will always output this error if you don't have any filename starting with two dots: grep: ..?*: No such file or directory Grep exited abnormally with code 2 I noticed "..?*" was introduced here: commit ref: 856cd948d1a5a016ad36721246a049d33451902f after reviewing bug #22577 (archived): https://debbugs.gnu.org/cgi/bugreport.cgi?bug=22577 Now that Emacs is smarter at quoting shell commands (at least on 27.2), "* .[!.]* ..?*" seems overcomplicated and no longer necessary. I couldn't reproduce bug #22577 with vc-git-grep as mentioned, using both BSD and GNU grep on Linux, Windows and macOS. Since "* .*" works as expected again, and doesn't produce the error of "..?*", I think it should be reverted back into grep-files-aliases. Lastly, to avoid such messages when using lgrep: grep: foobar: Is a directory We could add the parameter --directories=skip by default, since lgrep is not for recursive search. From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 07 21:33:26 2021 Received: (at 52367) by debbugs.gnu.org; 8 Dec 2021 02:33:26 +0000 Received: from localhost ([127.0.0.1]:39273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mumlq-0001U7-IZ for submit@debbugs.gnu.org; Tue, 07 Dec 2021 21:33:26 -0500 Received: from relayout01.e.movistar.es ([86.109.101.201]:39285 helo=relayout01-redir.e.movistar.es) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mumlo-0001Ts-Jw for 52367@debbugs.gnu.org; Tue, 07 Dec 2021 21:33:25 -0500 Received: from sky (234.red-88-17-68.dynamicip.rima-tde.net [88.17.68.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout01.e.movistar.es (Postfix) with ESMTPSA id 4J81Rw0fzfzfb8D; Wed, 8 Dec 2021 03:33:16 +0100 (CET) From: =?utf-8?Q?=C3=93scar_Fuentes?= To: 52367@debbugs.gnu.org Subject: Re: bug#52367: 27.2; lgrep and grep-files-aliases References: Date: Wed, 08 Dec 2021 03:33:15 +0100 In-Reply-To: (Maxence Dutielt's message of "Wed, 8 Dec 2021 01:54:26 +0100") Message-ID: <87zgpb966s.fsf@telefonica.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-TnetOut-Country: IP: 88.17.68.234 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout01 X-TnetOut-MsgID: 4J81Rw0fzfzfb8D.AC740 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1639535597.16478@HiOFRScju7bnqwhvNJEdHg X-Spam-Status: No X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 52367 Cc: Maxence Dutielt 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.7 (/) I would like to revert my 856cd948d1a5a016ad36721246a049d33451902f since the problem it addresses is no longer such problem (thanks to improvements on shell parameter quoting) and right now it is causing a regression on lgrep. Okay to revert it on emacs-28? From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 08 07:40:35 2021 Received: (at 52367) by debbugs.gnu.org; 8 Dec 2021 12:40:35 +0000 Received: from localhost ([127.0.0.1]:39716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muwFP-00022O-CK for submit@debbugs.gnu.org; Wed, 08 Dec 2021 07:40:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34078) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muwFO-00022B-3u for 52367@debbugs.gnu.org; Wed, 08 Dec 2021 07:40:34 -0500 Received: from [2001:470:142:3::e] (port=55646 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwFH-0008Mz-8q; Wed, 08 Dec 2021 07:40:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=DjsPZDKZOE9Ytn6iJFq2cVMwT3KVb+K2CZLKb7bzJMI=; b=XnZvkJ7F7pJwQ08+aUFt eq0DVMN+o1Z5QzhhQaB7wKO2Tb2oMfJJHVnWAo8O6If5evgFBkpZcGM480eL/EQQolvqeKVhINwT9 JB1zWldwnxA4GdvQPyyii8lMkyiQsh5v1D4zX6PhkLt/sjifBgCxxmIryNic0L3BtszC038GBhH0Y wFwgDb/4U9YxcakJwjwXtZ+kQuWt5I6eyJuqBYPhhf6NCk02+oreSwTdS2FZ1mSky6/qNb+STTiyD /UAxBiVwJcOmWGtYMvzpeHaEPtdEuhdUwoxAT5yQroBhpBwWs94CepJ6NfarQczjdO9Y0vM2usghM UXODHSUQ+7u6uA==; Received: from [87.69.77.57] (port=3787 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwFD-00025o-8b; Wed, 08 Dec 2021 07:40:26 -0500 Date: Wed, 08 Dec 2021 14:40:05 +0200 Message-Id: <837dcfxobe.fsf@gnu.org> From: Eli Zaretskii To: =?iso-8859-1?Q?=D3scar?= Fuentes In-Reply-To: <87zgpb966s.fsf@telefonica.net> (message from =?iso-8859-1?Q?=D3scar?= Fuentes on Wed, 08 Dec 2021 03:33:15 +0100) Subject: Re: bug#52367: 27.2; lgrep and grep-files-aliases References: <87zgpb966s.fsf@telefonica.net> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52367 Cc: m@dutielt.com, 52367@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 (---) > From: Óscar Fuentes > Date: Wed, 08 Dec 2021 03:33:15 +0100 > Cc: Maxence Dutielt > > I would like to revert my 856cd948d1a5a016ad36721246a049d33451902f since > the problem it addresses is no longer such problem (thanks to > improvements on shell parameter quoting) and right now it is causing a > regression on lgrep. > > Okay to revert it on emacs-28? Yes, thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 08 07:41:30 2021 Received: (at 52367) by debbugs.gnu.org; 8 Dec 2021 12:41:31 +0000 Received: from localhost ([127.0.0.1]:39721 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muwGI-000240-Mf for submit@debbugs.gnu.org; Wed, 08 Dec 2021 07:41:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1muwGH-00023n-9f for 52367@debbugs.gnu.org; Wed, 08 Dec 2021 07:41:29 -0500 Received: from [2001:470:142:3::e] (port=55676 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwGB-0000eh-20; Wed, 08 Dec 2021 07:41:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=WqmO/socX/Ybluop/O3vYdIijkcLu2wJ407FLT9hQWo=; b=dAMt3aRLbwnC VIcS88hVJH/iIpcet0QGlVi0oSEhSzVAXOk7PUaXd/g7JM1R5FpGyO+Pj/ri/ks9YIm30f1B4baRl x1S/C/bhaqWg/dM5HMlPldkFKpeFlLACg5b6JyruTzST9W1oYGNHeIwOYojxezAPMvVCdLZCeYuV3 KnRgTkI8Qi7/mnoKx2j0+yowX+8oAkDRhopMGLqlPXOQLILbl50iKv3jVS4qQ1ccWyMSfdDZyJlCD r0JisQ/imK4uobR6zK0FZ1PG82u+NJstKVhbHrnyd4fEJO2IyrG7i1FAqZMXzlZvLHHXE/5jFlsFk tE3f6//VTTbiBKD+m+dqKg==; Received: from [87.69.77.57] (port=3847 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1muwG6-0005fg-NO; Wed, 08 Dec 2021 07:41:21 -0500 Date: Wed, 08 Dec 2021 14:41:00 +0200 Message-Id: <835yrzxo9v.fsf@gnu.org> From: Eli Zaretskii To: Maxence Dutielt In-Reply-To: (message from Maxence Dutielt on Wed, 8 Dec 2021 01:54:26 +0100) Subject: Re: bug#52367: 27.2; lgrep and grep-files-aliases References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 52367 Cc: ofv@wanadoo.es, 52367@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 (---) > Date: Wed, 8 Dec 2021 01:54:26 +0100 > From: Maxence Dutielt > Cc: ofv@wanadoo.es > > We could add the parameter --directories=skip by default, since lgrep is > not for recursive search. That's only supported by GNU Grep, right? From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 08 12:10:43 2021 Received: (at 52367) by debbugs.gnu.org; 8 Dec 2021 17:10:43 +0000 Received: from localhost ([127.0.0.1]:41250 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0Sm-0004wv-UM for submit@debbugs.gnu.org; Wed, 08 Dec 2021 12:10:43 -0500 Received: from mr85p00im-ztdg06011201.me.com ([17.58.23.181]:46546) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv0Cy-0004Yc-N6 for 52367@debbugs.gnu.org; Wed, 08 Dec 2021 11:54:25 -0500 Received: from [192.168.1.13] (lfbn-lil-1-1030-172.w90-103.abo.wanadoo.fr [90.103.102.172]) by mr85p00im-ztdg06011201.me.com (Postfix) with ESMTPSA id 53D9E400529; Wed, 8 Dec 2021 16:54:14 +0000 (UTC) Message-ID: Date: Wed, 8 Dec 2021 17:54:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: bug#52367: 27.2; lgrep and grep-files-aliases Content-Language: fr To: Eli Zaretskii References: <835yrzxo9v.fsf@gnu.org> From: Maxence Dutielt In-Reply-To: <835yrzxo9v.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: =?UTF-8?Q?vendor=3Dfsecure_engine=3D1.1.170-22c6f66c430a71ce266a39bfe25bc?= =?UTF-8?Q?2903e8d5c8f:6.0.425,18.0.790,17.11.62.513.0000000_definitions?= =?UTF-8?Q?=3D2021-12-08=5F07:2021-12-08=5F01,2021-12-08=5F07,2021-12-02?= =?UTF-8?Q?=5F01_signatures=3D0?= X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 clxscore=1030 suspectscore=0 mlxscore=0 phishscore=0 malwarescore=0 mlxlogscore=391 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2112080098 X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: 52367 X-Mailman-Approved-At: Wed, 08 Dec 2021 12:10:40 -0500 Cc: ofv@wanadoo.es, 52367@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: -0.3 (/) > That's only supported by GNU Grep, right? It is supported by the BSD grep shipped with macOS: grep --version grep (BSD grep) 2.5.1-FreeBSD But it is not by the BSD grep shipped with OpenBSD. The grep variant in OpenBSD already skips directories by default if you don't provide the recursive option. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 08 17:58:21 2021 Received: (at 52367-done) by debbugs.gnu.org; 8 Dec 2021 22:58:21 +0000 Received: from localhost ([127.0.0.1]:41850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv5tF-0005fM-KZ for submit@debbugs.gnu.org; Wed, 08 Dec 2021 17:58:21 -0500 Received: from relayout02-redir.e.movistar.es ([86.109.101.202]:26945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mv5tC-0005f7-8X for 52367-done@debbugs.gnu.org; Wed, 08 Dec 2021 17:58:20 -0500 Received: from sky (234.red-88-17-68.dynamicip.rima-tde.net [88.17.68.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 981711563@telefonica.net) by relayout02.e.movistar.es (Postfix) with ESMTPSA id 4J8XdH0d3FzddBS; Wed, 8 Dec 2021 23:58:11 +0100 (CET) From: =?utf-8?Q?=C3=93scar_Fuentes?= To: Eli Zaretskii Subject: Re: bug#52367: 27.2; lgrep and grep-files-aliases References: <87zgpb966s.fsf@telefonica.net> <837dcfxobe.fsf@gnu.org> Date: Wed, 08 Dec 2021 23:58:10 +0100 In-Reply-To: <837dcfxobe.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 08 Dec 2021 14:40:05 +0200") Message-ID: <87v8zy901p.fsf@telefonica.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-TnetOut-Country: IP: 88.17.68.234 | Country: ES X-TnetOut-Information: AntiSPAM and AntiVIRUS on relayout02 X-TnetOut-MsgID: 4J8XdH0d3FzddBS.A8168 X-TnetOut-SpamCheck: no es spam, clean X-TnetOut-From: ofv@wanadoo.es X-TnetOut-Watermark: 1639609091.7519@fEsd4R7d7TN/JMQ4qxzx6g X-Spam-Status: No X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 52367-done Cc: m@dutielt.com, 52367-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: -0.7 (/) Eli Zaretskii writes: >> Okay to revert it on emacs-28? > > Yes, thanks. Done. @ Maxence Dutielt : please open a new issue for discussing the --directories=skip change you propose. Thank you. From unknown Thu Sep 11 06:33:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 06 Jan 2022 12:24:06 +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