unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / 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

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).