all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Windows Emacs and Cygwin - the default find-grep has a NUL argument
@ 2010-02-27 10:13 The Quiet Center
  2010-02-27 11:30 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: The Quiet Center @ 2010-02-27 10:13 UTC (permalink / raw
  To: help-gnu-emacs

When I type M-x grep-find in Emacs 23 for Windows, I get a command
line that has NUL in it:

Run find (like this): find . -type f -exec grep -nH  {} NUL \;

and I have to manually remove NUL for the grep-find command to work...
how can I remove that NUL part of the command line? Or should I leave
it and modify something else?



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

* Re: Windows Emacs and Cygwin - the default find-grep has a NUL argument
  2010-02-27 10:13 Windows Emacs and Cygwin - the default find-grep has a NUL argument The Quiet Center
@ 2010-02-27 11:30 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2010-02-27 11:30 UTC (permalink / raw
  To: help-gnu-emacs

> From: The Quiet Center <thequietcenter@gmail.com>
> Date: Sat, 27 Feb 2010 02:13:52 -0800 (PST)
> 
> When I type M-x grep-find in Emacs 23 for Windows, I get a command
> line that has NUL in it:
> 
> Run find (like this): find . -type f -exec grep -nH  {} NUL \;
> 
> and I have to manually remove NUL for the grep-find command to work...
> how can I remove that NUL part of the command line? Or should I leave
> it and modify something else?

The NUL part comes from the value of the variable `null-device'.  If
you will only ever be invoking Cygwin programs as Emacs subprocesses,
you can try customizing that variable to give it the "/dev/null" value
expected by the Cygwin shell.  But I don't know whether this could
break something else; search the Lisp files for null-device to see if
Emacs uses it in any context that is not invoking external programs.

Btw, if you use Cygwin, why don't you use the Cygwin build of Emacs?
Mixing two subtly incompatible packages, like Emacs and Cygwin, is
generally asking for trouble.  (For example, "M-x gdb" is known to be
broken with native Windows Emacs and Cygwin build of GDB, because of
incompatible handling of the terminal.)  So my advice would be to
install the Cygwin build of Emacs instead.  Then you won't need any
tweaking of null-device, cygwin-mount, etc.





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

end of thread, other threads:[~2010-02-27 11:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-27 10:13 Windows Emacs and Cygwin - the default find-grep has a NUL argument The Quiet Center
2010-02-27 11:30 ` 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.