all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Jari Aalto <jari.aalto@cante.net>
Subject: Re: find-grep and complicated patterns
Date: 13 Dec 2006 08:32:47 +0200	[thread overview]
Message-ID: <87k60we25s.fsf@w2kpicasso.cante.net> (raw)
In-Reply-To: ulklce857.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

> > Date: Wed, 13 Dec 2006 03:35:07 +0100
> > From: Lennart Borgman <lennart.borgman.073@student.lu.se>
> > 
> >    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

      reply	other threads:[~2006-12-13  6:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-13  2:35 find-grep and complicated patterns Lennart Borgman
2006-12-13  3:07 ` Miles Bader
2006-12-13  4:23 ` Eli Zaretskii
2006-12-13  6:32   ` Jari Aalto [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k60we25s.fsf@w2kpicasso.cante.net \
    --to=jari.aalto@cante.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.