[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does grep add /dev/null the first time?

From: Eli Zaretskii
Subject: Re: Why does grep add /dev/null the first time?
Date: Thu, 14 Aug 2014 22:13:09 +0300

> Date: Thu, 14 Aug 2014 11:12:07 -0700 (PDT)
> From: address@hidden
> The (minor) issue with this is that the first time after starting Emacs (and 
> only the first time) the shell command actually executed has "/dev/null" 
> appended (causing the search to return no results). Any subsequent 
> invocations it will work fine.
> What am I missing?

See the doc string of grep-use-null-device, which explains that.  Its
default value is 'auto-detect', which causes Emacs to invoke Grep once
for the purposes of detecting how to invoke it thereafter.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]