Subject: grep and null device

From: [email-masked]
Date: Tue, 11 Aug 2009 09:41:50 +0100 (BST)

Using emacs 23.1.1 on Windows ( also saw it on emacs 22.x and upgraded )
grep is from cygwin "GNU grep 2.5.3"

Using rgrep always tags on a null device giving lots of output like

grep: NUL: No such file or directory
grep: NUL: No such file or directory
grep: NUL: No such file or directory
grep: NUL: No such file or directory
grep: NUL: No such file or directory

I've tried customising and turning of grep-use-null-device - as from a
quick look at grep.el this is responsible. But no success.

Bug recreated using -no-init-file and -no-site-file

In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600)
 of 2009-07-30 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4)'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: ENG
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Custom

Minor modes in effect:
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e g <backspace> <backspace> g r e p <return>
<return> * . a s <return> C-a C-k $ F L A S H / <tab>
<return> <backspace> <return> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <left>
<left> <left> <left> <left> <left> <left> <left> <right>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<right> L : <backspace> <backspace> : <return> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<menu-bar> <options> <customize> <customize-group>
g r e p <return> <help-echo> <down-mouse-1> <mouse-1>
<wheel-down> <double-wheel-down> <triple-wheel-down>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <down-mouse-1> <help-echo> <mouse-movement>
<drag-mouse-1> <help-echo> <down-mouse-1> <help-echo>
<down-mouse-1> <help-echo> <help-echo> <down-mouse-1>
<mouse-1> M-x r g r e p <return> <return> <return>
<return> <help-echo> <down-mouse-1> <mouse-1> <wheel-down>
<double-wheel-down> M-x r g r e p <return> <return>
<return> <return> <help-echo> <down-mouse-1> <mouse-1>
M-x r e p o r t - e m <tab> <return>

Recent messages:
Creating group...
Creating group members... 91%
Creating group magic...
Creating group state...
Creating group... done
Creating customization items ...done
Resetting customization items...done
Creating customization setup...done
To install your edits, invoke [State] and choose the Set operation
Grep finished (matches found) [2 times]