[Top][All Lists]

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

Re: M-x grep /dev/null embarrassment

From: Kevin Rodgers
Subject: Re: M-x grep /dev/null embarrassment
Date: Wed, 13 Mar 2002 18:22:33 -0700

Dan Jacobson wrote:
> Anyways, "lose the /dev/null hack and use a regular grep -switch to
> force filenames.  It's about time."

On my platform (SunOS 5.7/Solaris 7) there are no grep options that force
both the file name and matched text to be printed.  The /dev/null trick is
necessary when you specify a pattern that globs to a single file.

To run a pipe line via `M-x grep', just do this:

        (setq null-device nil)

Should that trick be documented somewhere?

Kevin Rodgers <address@hidden>

reply via email to

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