unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4115: grep and null device
@ 2009-08-11  8:41 ` ts011c8050
  2009-08-11 18:40   ` Eli Zaretskii
  2009-08-12 17:40   ` bug#4115: marked as done (grep and null device) Emacs bug Tracking System
  0 siblings, 2 replies; 6+ messages in thread
From: ts011c8050 @ 2009-08-11  8:41 UTC (permalink / raw)
  To: bug-gnu-emacs

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]









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

* bug#4115: grep and null device
  2009-08-11  8:41 ` bug#4115: grep and null device ts011c8050
@ 2009-08-11 18:40   ` Eli Zaretskii
       [not found]     ` <000001ca1ab4$f5c738b0$e155aa10$@co.uk>
  2009-08-12 17:40   ` bug#4115: marked as done (grep and null device) Emacs bug Tracking System
  1 sibling, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2009-08-11 18:40 UTC (permalink / raw)
  To: ts011c8050, 4115

> Date: Tue, 11 Aug 2009 09:41:50 +0100 (BST)
> From: ts011c8050@blueyonder.co.uk
> Cc: 
> 
> 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

Does Cygwin support NUL as the Windows null device?  If not, that's
your problem.

Doesn't `rgrep' also invoke `find'?  (It should show the full command
it is running in the "*grep*" buffer.)  If so, what port of `find' are
you using?





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

* bug#4115: grep and null device
       [not found]     ` <000001ca1ab4$f5c738b0$e155aa10$@co.uk>
@ 2009-08-11 20:34       ` Eli Zaretskii
  2009-08-11 22:47         ` Jason Rumney
       [not found]         ` <000c01ca1acf$29cca3b0$7d65eb10$@co.uk>
  0 siblings, 2 replies; 6+ messages in thread
From: Eli Zaretskii @ 2009-08-11 20:34 UTC (permalink / raw)
  To: shippeys; +Cc: 4115

> From: "shippeys" <theshippeys@blueyonder.co.uk>
> Date: Tue, 11 Aug 2009 19:53:05 +0100

Please use Reply-All, to let the bug-tracker archive all the
discussion.

> > > grep: NUL: No such file or directory
> > 
> > Does Cygwin support NUL as the Windows null device?  If not, that's
> > your problem.
> > 
> 
> Yes - Would it be the grep.el code that gets confused and picks NUL?

You are using a native Windows port of Emacs.  NUL is the standard
name of the null device on that system.  Why do you think it gets
confused?

> AIUI the null device is only there to make sure the grep call doesn't hang
> if you forget to pass it files to search. It seems a lot of pain for a
> marginal benefit!

I don't know yet why null device is there.  Seeing the command line
would help.





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

* bug#4115: grep and null device
  2009-08-11 20:34       ` Eli Zaretskii
@ 2009-08-11 22:47         ` Jason Rumney
       [not found]         ` <000c01ca1acf$29cca3b0$7d65eb10$@co.uk>
  1 sibling, 0 replies; 6+ messages in thread
From: Jason Rumney @ 2009-08-11 22:47 UTC (permalink / raw)
  To: Eli Zaretskii, 4115; +Cc: shippeys

Eli Zaretskii wrote:

>> AIUI the null device is only there to make sure the grep call doesn't hang
>> if you forget to pass it files to search. It seems a lot of pain for a
>> marginal benefit!
>>     
>
> I don't know yet why null device is there.  Seeing the command line
> would help.
>   

It is there to force grep to print filenames in its output, even if only 
a single filename is given on the command line.






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

* bug#4115: grep and null device
       [not found]         ` <000c01ca1acf$29cca3b0$7d65eb10$@co.uk>
@ 2009-08-12  3:10           ` Eli Zaretskii
  0 siblings, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2009-08-12  3:10 UTC (permalink / raw)
  To: Tom Shippey; +Cc: 4115

> From: "Tom Shippey" <tomshippey@blueyonder.co.uk>
> Date: Tue, 11 Aug 2009 23:00:38 +0100
> 
> find . \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path \*/MCVS -o
> -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -path
> \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o  -type f \(
> -iname \*.c \) -exec grep -i -n junk {} NUL \;
> ./x.c:1:junk
> ./x.c:3:junk
> grep: NUL: No such file or directory
> grep: NUL: No such file or directory

Does it help to set null-device to "/dev/null"?





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

* bug#4115: marked as done (grep and null device)
  2009-08-11  8:41 ` bug#4115: grep and null device ts011c8050
  2009-08-11 18:40   ` Eli Zaretskii
@ 2009-08-12 17:40   ` Emacs bug Tracking System
  1 sibling, 0 replies; 6+ messages in thread
From: Emacs bug Tracking System @ 2009-08-12 17:40 UTC (permalink / raw)
  To: Eli Zaretskii

[-- Attachment #1: Type: text/plain, Size: 832 bytes --]


Your message dated Wed, 12 Aug 2009 20:32:38 +0300
with message-id <83my65j5u1.fsf@gnu.org>
and subject line Re: bug#4115: grep and null device
has caused the Emacs bug report #4115,
regarding grep and null device
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com
immediately.)


-- 
4115: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4115
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 5507 bytes --]

From: ts011c8050@blueyonder.co.uk
To: bug-gnu-emacs@gnu.org
Subject: grep and null device
Date: Tue, 11 Aug 2009 09:41:50 +0100 (BST)
Message-ID: <3988.84.19.238.174.1249980110.UEIUQ2lbQEh6Qw==.squirrel@84.19.238.174>

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]






[-- Attachment #3: Type: message/rfc822, Size: 2510 bytes --]

From: Eli Zaretskii <eliz@gnu.org>
To: Tom Shippey <tomshippey@blueyonder.co.uk>
Cc: 4115-done@emacsbugs.donarmstrong.com
Subject: Re: bug#4115: grep and null device
Date: Wed, 12 Aug 2009 20:32:38 +0300
Message-ID: <83my65j5u1.fsf@gnu.org>

> From: "Tom Shippey" <tomshippey@blueyonder.co.uk>
> Date: Wed, 12 Aug 2009 08:50:57 +0100
> 
> > > find . \( -path \*/SCCS -o -path \*/RCS -o -path \*/CVS -o -path
> > \*/MCVS -o
> > > -path \*/.svn -o -path \*/.git -o -path \*/.hg -o -path \*/.bzr -o -
> > path
> > > \*/_MTN -o -path \*/_darcs -o -path \*/\{arch\} \) -prune -o  -type f
> > \(
> > > -iname \*.c \) -exec grep -i -n junk {} NUL \;
> > > ./x.c:1:junk
> > > ./x.c:3:junk
> > > grep: NUL: No such file or directory
> > > grep: NUL: No such file or directory
> > 
> > Does it help to set null-device to "/dev/null"?
> 
> Yep - that works fine. Many thanks.

Thanks.  I'm closing the bug, because its reason is mixing a native
Windows build of Emacs with Cygwin shell that apparently does not
support NUL as the null device.

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

end of thread, other threads:[~2009-08-12 17:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <83my65j5u1.fsf@gnu.org>
2009-08-11  8:41 ` bug#4115: grep and null device ts011c8050
2009-08-11 18:40   ` Eli Zaretskii
     [not found]     ` <000001ca1ab4$f5c738b0$e155aa10$@co.uk>
2009-08-11 20:34       ` Eli Zaretskii
2009-08-11 22:47         ` Jason Rumney
     [not found]         ` <000c01ca1acf$29cca3b0$7d65eb10$@co.uk>
2009-08-12  3:10           ` Eli Zaretskii
2009-08-12 17:40   ` bug#4115: marked as done (grep and null device) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

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

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