help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Piped grep giving different results in "M-x grep" vs. from a shell ?


From: Óscar Fuentes
Subject: Re: Piped grep giving different results in "M-x grep" vs. from a shell ??
Date: Fri, 20 Aug 2010 01:38:57 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

François Granade <address@hidden> writes:

> I'm trying to grep for the string "bar" but not for "foobar".
>
> From a shell, if I run "grep -nH -e 'bar' * | grep -v 'foobar'", I get
> the results I expect: the lines that contain "bar" but not 'foobar'.
>
> However, if I run from within emacs (M-x grep), the same command
> returns also the lines that contain "foobar".
>
> I'm running emacs shipped in MacOS X 10.6 "GNU Emacs 22.1.1
> (mac-apple-darwin) of 2010-02-26 on crevasse.apple.com"; if I'm
> correct, pipes should be supported in this version of Emacs. What's
> wrong with me ?

It works for me on GNU Emacs 24.0.50.3 (x86_64-unknown-linux-gnu, X
toolkit) of 2010-08-12




reply via email to

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