all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem with grep
@ 2018-04-19  0:16 Stanke, Fred
  2018-04-19  6:38 ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: Stanke, Fred @ 2018-04-19  0:16 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

I am not a unix guy, but I've come to depend on emacs after using it for decades.

I have a problem, grep does not work.  How do I fix it?

-*- mode: grep; default-directory: "c:/Users/fstanke/Documents/" -*-
Grep started at Wed Apr 18 17:14:36

grep  -n cycles *.txt NUL
'grep' is not recognized as an internal or external command,
operable program or batch file.

Grep exited abnormally with code 1 at Wed Apr 18 17:14:38



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
  2018-04-19  0:16 Stanke, Fred
@ 2018-04-19  6:38 ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2018-04-19  6:38 UTC (permalink / raw)
  To: help-gnu-emacs

> From: "Stanke, Fred" <fstanke@nanometrics.com>
> Date: Thu, 19 Apr 2018 00:16:34 +0000
> I have a problem, grep does not work.  How do I fix it?
> 
> -*- mode: grep; default-directory: "c:/Users/fstanke/Documents/" -*-
> Grep started at Wed Apr 18 17:14:36
> 
> grep  -n cycles *.txt NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.
> 
> Grep exited abnormally with code 1 at Wed Apr 18 17:14:38

Install a port of GNU Grep.  There are several ports floating around
that you can use.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
       [not found] <mailman.12709.1524098682.27995.help-gnu-emacs@gnu.org>
@ 2018-04-19 16:19 ` Ben Bacarisse
  2018-04-19 17:49   ` Emanuel Berg
  2018-04-19 20:43 ` Dan Espen
  1 sibling, 1 reply; 10+ messages in thread
From: Ben Bacarisse @ 2018-04-19 16:19 UTC (permalink / raw)
  To: help-gnu-emacs

"Stanke, Fred" <fstanke@nanometrics.com> writes:

> I am not a unix guy, but I've come to depend on emacs after using it
> for decades.
>
> I have a problem, grep does not work.  How do I fix it?
>
> -*- mode: grep; default-directory: "c:/Users/fstanke/Documents/" -*-
> Grep started at Wed Apr 18 17:14:36
>
> grep  -n cycles *.txt NUL
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.
>
> Grep exited abnormally with code 1 at Wed Apr 18 17:14:38

The obvious question is whether you have grep installed.  If you do, it
looks like emacs does not know about it.  There is a group you can
customise that might be worth looking at as well.

I can't be more helpful because I use emacs on Linux, so things are
rather different.

-- 
Ben.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
  2018-04-19 16:19 ` problem with grep Ben Bacarisse
@ 2018-04-19 17:49   ` Emanuel Berg
  0 siblings, 0 replies; 10+ messages in thread
From: Emanuel Berg @ 2018-04-19 17:49 UTC (permalink / raw)
  To: help-gnu-emacs

Ben Bacarisse wrote:

> I can't be more helpful because I use emacs
> on Linux, so things are rather different.

*much better

-- 
underground experts united
http://user.it.uu.se/~embe8573


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
       [not found] <mailman.12709.1524098682.27995.help-gnu-emacs@gnu.org>
  2018-04-19 16:19 ` problem with grep Ben Bacarisse
@ 2018-04-19 20:43 ` Dan Espen
  2018-04-20  6:40   ` Eli Zaretskii
                     ` (2 more replies)
  1 sibling, 3 replies; 10+ messages in thread
From: Dan Espen @ 2018-04-19 20:43 UTC (permalink / raw)
  To: help-gnu-emacs

"Stanke, Fred" <fstanke@nanometrics.com> writes:

> I am not a unix guy, but I've come to depend on emacs after using it for decades.
>
> I have a problem, grep does not work.  How do I fix it?
...
> 'grep' is not recognized as an internal or external command,
> operable program or batch file.

When I had to use Windows, I found the path of least resistance was to
install the Cygwin package.  That includes grep and lots of other
very useful Unix-y stuff, including diff which also works well with Emacs.

-- 
Dan Espen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
  2018-04-19 20:43 ` Dan Espen
@ 2018-04-20  6:40   ` Eli Zaretskii
       [not found]   ` <mailman.12761.1524206448.27995.help-gnu-emacs@gnu.org>
  2018-04-20 17:51   ` Tomas Nordin
  2 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2018-04-20  6:40 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Dan Espen <dan1espen@gmail.com>
> Date: Thu, 19 Apr 2018 16:43:40 -0400
> 
> When I had to use Windows, I found the path of least resistance was to
> install the Cygwin package.  That includes grep and lots of other
> very useful Unix-y stuff, including diff which also works well with Emacs.

Since nowadays native Windows ports of all the important GNU utilities
are available, I don't think suggesting Cygwin is a good idea, because
using Cygwin programs with native Windows build of Emacs has subtle
problems which will require further non-default setups and tinkering.

People who want Cygwin (and generally like to feel almost like on a
Posix system) should install a Cygwin build of Emacs, not a native
build.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
       [not found]   ` <mailman.12761.1524206448.27995.help-gnu-emacs@gnu.org>
@ 2018-04-20 11:53     ` Rusi
  2018-04-20 13:00       ` Eli Zaretskii
       [not found]       ` <mailman.12772.1524229233.27995.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 10+ messages in thread
From: Rusi @ 2018-04-20 11:53 UTC (permalink / raw)
  To: help-gnu-emacs

On Friday, April 20, 2018 at 12:10:51 PM UTC+5:30, Eli Zaretskii wrote:
> > From: Dan Espen 
> > Date: Thu, 19 Apr 2018 16:43:40 -0400
> > 
> > When I had to use Windows, I found the path of least resistance was to
> > install the Cygwin package.  That includes grep and lots of other
> > very useful Unix-y stuff, including diff which also works well with Emacs.
> 
> Since nowadays native Windows ports of all the important GNU utilities
> are available, I don't think suggesting Cygwin is a good idea, because
> using Cygwin programs with native Windows build of Emacs has subtle
> problems which will require further non-default setups and tinkering.
> 
> People who want Cygwin (and generally like to feel almost like on a
> Posix system) should install a Cygwin build of Emacs, not a native
> build.

I wonder whether one should say
gnuwin32 (or unixutils?) < msys (ming?) < cygwin
is an increasing order of nixiness but also increasing order of heavyweightness?


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
  2018-04-20 11:53     ` Rusi
@ 2018-04-20 13:00       ` Eli Zaretskii
       [not found]       ` <mailman.12772.1524229233.27995.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2018-04-20 13:00 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Fri, 20 Apr 2018 04:53:30 -0700 (PDT)
> From: Rusi <rustompmody@gmail.com>
> 
> I wonder whether one should say
> gnuwin32 (or unixutils?) < msys (ming?) < cygwin
> is an increasing order of nixiness but also increasing order of heavyweightness?

MSYS is a fork of Cygwin, with relatively few changes, so the distance
between the two is very short.

(Both GnuWin32 and UnxUtils AFAIK offer very old ports, so they are
not what I'd suggest as the first place to look for recent ports.)



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
  2018-04-19 20:43 ` Dan Espen
  2018-04-20  6:40   ` Eli Zaretskii
       [not found]   ` <mailman.12761.1524206448.27995.help-gnu-emacs@gnu.org>
@ 2018-04-20 17:51   ` Tomas Nordin
  2 siblings, 0 replies; 10+ messages in thread
From: Tomas Nordin @ 2018-04-20 17:51 UTC (permalink / raw)
  To: Dan Espen, help-gnu-emacs

Dan Espen <dan1espen@gmail.com> writes:

> "Stanke, Fred" <fstanke@nanometrics.com> writes:
>
>> I am not a unix guy, but I've come to depend on emacs after using it for decades.
>>
>> I have a problem, grep does not work.  How do I fix it?
> ...
>> 'grep' is not recognized as an internal or external command,
>> operable program or batch file.
>
> When I had to use Windows, I found the path of least resistance was to

A lot of people use Git, also on Windows, typically the Git for Windows
installation. On Windows I have found the path of least resistance to be
to use the Gnu tools provided with the Git installation. There is some
talk about the file structure here:
https://superuser.com/questions/1053633/what-is-git-bash-for-windows-anyway#1053657



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: problem with grep
       [not found]       ` <mailman.12772.1524229233.27995.help-gnu-emacs@gnu.org>
@ 2018-04-20 19:11         ` James K. Lowden
  0 siblings, 0 replies; 10+ messages in thread
From: James K. Lowden @ 2018-04-20 19:11 UTC (permalink / raw)
  To: help-gnu-emacs

On Fri, 20 Apr 2018 16:00:09 +0300
Eli Zaretskii <eliz@gnu.org> wrote:

> (Both GnuWin32 and UnxUtils AFAIK offer very old ports, so they are
> not what I'd suggest as the first place to look for recent ports.)

I haven't used them in a few years, but if Grep for Windows is all you
need to complete your emacs bliss, I'd start with GnuWin32.  No harm in
trying; easy to delete if it doesn't delight.  

--jkl



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-20 19:11 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.12709.1524098682.27995.help-gnu-emacs@gnu.org>
2018-04-19 16:19 ` problem with grep Ben Bacarisse
2018-04-19 17:49   ` Emanuel Berg
2018-04-19 20:43 ` Dan Espen
2018-04-20  6:40   ` Eli Zaretskii
     [not found]   ` <mailman.12761.1524206448.27995.help-gnu-emacs@gnu.org>
2018-04-20 11:53     ` Rusi
2018-04-20 13:00       ` Eli Zaretskii
     [not found]       ` <mailman.12772.1524229233.27995.help-gnu-emacs@gnu.org>
2018-04-20 19:11         ` James K. Lowden
2018-04-20 17:51   ` Tomas Nordin
2018-04-19  0:16 Stanke, Fred
2018-04-19  6:38 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.