From: Eli Zaretskii <eliz@is.elta.co.il>
Subject: Re: grep command adds "NUL"
Date: Tue, 3 Dec 2002 08:13:31 +0200 (IST) [thread overview]
Message-ID: <Pine.SUN.3.91.1021203081022.14670D-100000@is> (raw)
In-Reply-To: <ashe5v$1og7$1@otis.netspace.net.au>
On Tue, 3 Dec 2002, Leo wrote:
> cd C:/mydir/
> grep -n 'spider' *.pas NUL
> spidermain.pas:368: 115 spider:= TSpider.Create;
> grep: NUL: Permission denied
>
> grep exited abnormally with code 2 at Tue Dec 03 15:59:34
>
> looking in the elisp source tells me, that emacs wants to add a null-device.
> why that?
It does so because ``normal'' (read: Posix-compliant) versions of Grep
don't report file names when you run them on a single file. Adding the
system null device makes the list of files be always at least 2 files
long, so file names are reported. (Emacs needs the file names to let you
jump to each match found by Grep.)
Since you run Emacs on Windows, I'm guessing that your Grep is not
Posix-compliant, perhaps from Borland? In that case, I suggest you find
a port of GNU Grep and install it; then the problems will go away.
next prev parent reply other threads:[~2002-12-03 6:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-03 5:06 grep command adds "NUL" Leo
2002-12-03 6:13 ` Eli Zaretskii [this message]
2002-12-03 7:40 ` Kai Großjohann
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=Pine.SUN.3.91.1021203081022.14670D-100000@is \
--to=eliz@is.elta.co.il \
/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.