[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-grep and complicated patterns
From: |
Jari Aalto |
Subject: |
Re: find-grep and complicated patterns |
Date: |
13 Dec 2006 08:32:47 +0200 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 |
Eli Zaretskii <address@hidden> writes:
> > Date: Wed, 13 Dec 2006 03:35:07 +0100
> > From: Lennart Borgman <address@hidden>
> >
> > find . -name "*.el" -type f -print0 | xargs -0 -e grep -nH -e "aaa bbb"
> >
> > where there is a space in the pattern? The above does NOT work! Is this
> > platform dependent? (On w32 you may use Cygwin or Gnuwin32+cmd.exe here.)
>
> I suspect that this is a bug in the Windows port of xargs: when it
> invokes Grep, the quotes are already stripped, and it fails to quote
> them again.
cmdproxy may treat them differently. At least:
dos> echo foo | something
====
is treated like
"foo "
If there is no extra space before pipe(|) character:
dos> echo foo|something
then it's treated like:
"foo"
Jari