GNU bug report logs - #4115
grep and null device

Previous Next

Package: emacs;

Reported by: ts011c8050 <at> blueyonder.co.uk

Date: Tue, 11 Aug 2009 08:50:04 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jason Rumney <jasonr <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>, 4115 <at> debbugs.gnu.org
Cc: shippeys <theshippeys <at> blueyonder.co.uk>
Subject: bug#4115: grep and null device
Date: Wed, 12 Aug 2009 06:47:41 +0800
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.




This bug report was last modified 15 years and 345 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.