[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: M-x grep should hang if no files specified
From: |
Stefan Monnier |
Subject: |
Re: M-x grep should hang if no files specified |
Date: |
Tue, 14 Nov 2006 10:21:16 -0500 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.90 (gnu/linux) |
>> It's very easy if done at the right place: inside GNU grep (rather than
>> inside Emacs). And it sure should complain: the user specified a search in
>> 0 files, so there's obviously something odd.
>> From grep(1):
> DESCRIPTION
> grep searches the named input FILEs (or standard input if no
> files are named, or the file name - is given)
> Specifying 0 files is absolutely not an error.
Duh, sorry I thought we passed some explicit arg to say "don't use stdin
either", but I know see that we just use process-send-eof for that instead,
so indeed there's no way for grep to know what's going on.
Stefan