unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: "Óscar Fuentes" <ofv@wanadoo.es>
Cc: emacs-devel@gnu.org
Subject: Re: Could we include diff and grep (etc.) executables on Windows?
Date: Wed, 20 Nov 2019 18:11:08 +0200	[thread overview]
Message-ID: <831ru21qar.fsf@gnu.org> (raw)
In-Reply-To: <87d0dny5cn.fsf@telefonica.net> (message from Óscar Fuentes on Tue, 19 Nov 2019 21:32:40 +0100)

> From: Óscar Fuentes <ofv@wanadoo.es>
> Date: Tue, 19 Nov 2019 21:32:40 +0100
> 
> Eli Zaretskii <eliz@gnu.org> 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?



  reply	other threads:[~2019-11-20 16:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-17 11:50 Could we include diff and grep (etc.) executables on Windows? Mathias Dahl
2019-11-17 16:07 ` Eli Zaretskii
2019-11-17 16:53 ` Stefan Monnier
2019-11-17 17:09   ` Eli Zaretskii
2019-11-17 17:49     ` Óscar Fuentes
2019-11-17 19:39       ` Stefan Monnier
2019-11-18 15:53         ` Phillip Lord
2019-11-18 18:05         ` Stephen Leake
2019-11-19 14:56           ` Phillip Lord
2019-11-19 15:43       ` Eli Zaretskii
2019-11-19 20:32         ` Óscar Fuentes
2019-11-20 16:11           ` Eli Zaretskii [this message]
2019-11-18 15:49     ` Phillip Lord
2019-11-18 16:08       ` Eli Zaretskii
2019-11-18 15:48 ` Phillip Lord
2019-11-18 16:09   ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=831ru21qar.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).