all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Windows Emacs and Cygwin - the default find-grep has a NUL argument
Date: Sat, 27 Feb 2010 13:30:27 +0200	[thread overview]
Message-ID: <83zl2udigc.fsf@gnu.org> (raw)
In-Reply-To: <6507399f-cf8e-453d-953f-9f1440a80e0a@f35g2000yqd.googlegroups.com>

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





      reply	other threads:[~2010-02-27 11:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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

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

  git send-email \
    --in-reply-to=83zl2udigc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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 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.