From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Could we include diff and grep (etc.) executables on Windows? Date: Wed, 20 Nov 2019 18:11:08 +0200 Message-ID: <831ru21qar.fsf@gnu.org> References: <83d0dq5t09.fsf@gnu.org> <877e3yz939.fsf@telefonica.net> <83blt73m9c.fsf@gnu.org> <87d0dny5cn.fsf@telefonica.net> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="8122"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: =?iso-8859-1?Q?=D3scar?= Fuentes Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 20 17:12:17 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iXSaX-0001zU-0R for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2019 17:12:17 +0100 Original-Received: from localhost ([::1]:59978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSaV-0001Af-BZ for ged-emacs-devel@m.gmane.org; Wed, 20 Nov 2019 11:12:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41410) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXSZL-00018k-AJ for emacs-devel@gnu.org; Wed, 20 Nov 2019 11:11:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iXSZJ-0008Ec-EH; Wed, 20 Nov 2019 11:11:02 -0500 Original-Received: from [176.228.60.248] (port=1559 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iXSZI-00032G-32; Wed, 20 Nov 2019 11:11:00 -0500 In-reply-to: <87d0dny5cn.fsf@telefonica.net> (message from =?iso-8859-1?Q?=D3scar?= Fuentes on Tue, 19 Nov 2019 21:32:40 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:242494 Archived-At: > From: Óscar Fuentes > Date: Tue, 19 Nov 2019 21:32:40 +0100 > > Eli Zaretskii writes: > > >> For the case of diff and grep MSYS2 has native binaries > > > > But that's about all, so it seems. There are no Coreutils, no > > Findutils, no Grep, no Sed, etc. > > MSYS2 already has native Sed, Grep It does? Maybe I'm blind, but "pacman -Ss" disagrees, it only shows msys packages for these. > Findutils would be doable. Doable, yes. But not easy, if you want 'find', 'locate', and 'xargs' to work: they use fork/exec/waitpid, take inode equality to mean identical files/directories, expect you to be able to pass quoted wildcards, etc. That's why years ago I had to do my own port, because the existing ones were either broken, or abysmally slow (or both). > Nowadays I just install some new fancy searcher (such as ag, the Silver > Searcher) and that covers the explicit Findutils+Grep case. IIRC there > are places on Emacs that use Findutils+Grep under the hood (Dired? > Ediff?). grep-find and find-dired come to mind, and I think Cedet. But we also call xargs here and there. > AFAIR never missed Sed or Coreutils on Emacs on Windows. You don't use Dired?