Re: Windows 29.1 error - xargs MIA

JF <[email protected]> Thu, 30 Nov 2023 15:03:19 -0400
Newsgroups gmane.emacs.windows
Message-ID <CAMKqOdOnOAFPgLY3DuOMzQoZ+BWWy=D4y59dymHXx2_ZRZ4rTQ@mail.gmail.com>
--00000000000032ec14060b635049
Content-Type: text/plain; charset="UTF-8"

Thank you both for your suggestions.
I did install grep and was able to make 600 substitutions in 43 files in
one swell foop - very cool.
John.



> I did that, and included the "bin" folder in my PATH.
> Now I get "search failed with status 0: xargs: grep: no such file or
directory" which my Google search suggests may have something to do with
having
> filenames with embedded blanks??
> John

You're still missing some things.

One of the ways I've found to get almost all the helper utils emacs needs
in one hit is to install Git for Windows and do something like

(setenv "PATH" (concat "C:\\Program Files\\Git\\usr\\bin;" (getenv "PATH")))
(push "C:/Program Files/Git/usr/bin" exec-path)

at the start of .emacs (or site customisation files).

The main thing I miss are the man pages. The only actual util I sometimes
use that isn't in there is a spell checker.

Cheers,




...

> >
> > One of the ways I've found to get almost all the helper utils emacs
> needs in one hit is to install Git for Windows and do something like
> >
> > (setenv "PATH" (concat "C:\\Program Files\\Git\\usr\\bin;" (getenv
> "PATH")))
> > (push "C:/Program Files/Git/usr/bin" exec-path)
>
> FWIW, I don't recommend setting PATH from within Emacs, because that
> could mean the programs you invoke have a different notion about PATH
> than Emacs does.  Instead, change the PATH outside Emacs using the
> Windows settings, then Emacs will inherit that value of PATH when it
> starts.
>
> Also, beware: the programs in Git/usr/bin are MSYS programs, not
> native Windows programs.  They all depend on MSYS DLL, and behave
> slightly differently as regards to signals, pipes, and console I/O.
> This could cause subtle problems when using them from a native (MinGW)
> Windows build of Emacs.  So my advice is to install MinGW ports of the
> required utilities, not MSYS ports that are part of Git for Windows.
>
> > The main thing I miss are the man pages.
>
> You need a port of Groff and a man program/clone.
>
> > The only actual util I sometimes use that isn't in there is a spell
> checker.
>
> What about Texinfo?
>

--00000000000032ec14060b635049
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thank you both for your suggestions.</div><div>I did =
install grep and was able to make 600 substitutions in 43 files in one swel=
l foop - very cool.</div><div>John.<br></div><div><br></div><div><br></div>=
<div><br></div><div>
<div class=3D"gmail-aju"><div class=3D"gmail-aCi">
<span class=3D"gmail-im">&gt; I did that, and included the &quot;bin&quot; =
folder in my PATH.<br>
&gt; Now I get &quot;search failed with status 0: xargs: grep: no such file=
=20
or directory&quot; which my Google search suggests may have something to do=
=20
with having<br>
&gt; filenames with embedded blanks??<br>
&gt; John<br>
<br></span>
You&#39;re still missing some things.<br>
<br>
One of the ways I&#39;ve found to get almost all the helper utils emacs=20
needs in one hit is to install Git for Windows and do something like<br>
<br>
(setenv &quot;PATH&quot; (concat &quot;C:\\Program Files\\Git\\usr\\bin;&qu=
ot; (getenv &quot;PATH&quot;)))<br>
(push &quot;C:/Program Files/Git/usr/bin&quot; exec-path)<br>
<br>
at the start of .emacs (or site customisation files).<br>
<br>
The main thing I miss are the man pages. The only actual util I sometimes u=
se that isn&#39;t in there is a spell checker.<br>
<br>
Cheers,

</div></div><div class=3D"gmail-gs"><div class=3D"gmail-gE gmail-iv gmail-g=
t"><table cellpadding=3D"0" class=3D"gmail-cf gmail-gJ"><tbody><tr class=3D=
"gmail-acZ"><td class=3D"gmail-gF gmail-gK"><table cellpadding=3D"0" class=
=3D"gmail-cf gmail-ix"><tbody><tr><td class=3D"gmail-c2"><br></td></tr></tb=
ody></table></td></tr></tbody></table></div></div><table cellpadding=3D"0" =
class=3D"gmail-cf gmail-gJ"><tbody><tr class=3D"gmail-acZ"><td class=3D"gma=
il-gH"><br></td><td class=3D"gmail-gH gmail-acX gmail-bAm" rowspan=3D"2"><b=
r></td></tr></tbody></table><table cellpadding=3D"0" class=3D"gmail-cf gmai=
l-gJ"><tbody><tr class=3D"gmail-acZ gmail-xD"><td colspan=3D"3"><table cell=
padding=3D"0" class=3D"gmail-cf gmail-adz"><tbody><tr><td class=3D"gmail-ad=
y"><br></td></tr></tbody></table></td></tr></tbody></table></div><div class=
=3D"gmail_quote">...<br><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
&gt; <br>
&gt; One of the ways I&#39;ve found to get almost all the helper utils emac=
s needs in one hit is to install Git for Windows and do something like<br>
&gt; <br>
&gt; (setenv &quot;PATH&quot; (concat &quot;C:\\Program Files\\Git\\usr\\bi=
n;&quot; (getenv &quot;PATH&quot;)))<br>
&gt; (push &quot;C:/Program Files/Git/usr/bin&quot; exec-path)<br>
<br>
FWIW, I don&#39;t recommend setting PATH from within Emacs, because that<br=
>
could mean the programs you invoke have a different notion about PATH<br>
than Emacs does.=C2=A0 Instead, change the PATH outside Emacs using the<br>
Windows settings, then Emacs will inherit that value of PATH when it<br>
starts.<br>
<br>
Also, beware: the programs in Git/usr/bin are MSYS programs, not<br>
native Windows programs.=C2=A0 They all depend on MSYS DLL, and behave<br>
slightly differently as regards to signals, pipes, and console I/O.<br>
This could cause subtle problems when using them from a native (MinGW)<br>
Windows build of Emacs.=C2=A0 So my advice is to install MinGW ports of the=
<br>
required utilities, not MSYS ports that are part of Git for Windows.<br>
<br>
&gt; The main thing I miss are the man pages.<br>
<br>
You need a port of Groff and a man program/clone.<br>
<br>
&gt; The only actual util I sometimes use that isn&#39;t in there is a spel=
l checker.<br>
<br>
What about Texinfo?<br>
</blockquote></div></div>

--00000000000032ec14060b635049--