Subject: bug#4115: grep and null device

From: Eli Zaretskii <[email-masked]>
Date: Wed, 12 Aug 2009 06:10:24 +0300

> From: "Tom Shippey" <[email-masked]>
> 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"?