From: David Kastrup <dak@gnu.org>
Cc: sds@podval.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: grep error because of bad previous input
Date: Fri, 28 Jul 2006 09:31:22 +0200 [thread overview]
Message-ID: <85d5bqjid1.fsf@lola.goethe.zz> (raw)
In-Reply-To: <jwvwt9ymcg7.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Fri, 28 Jul 2006 03:11:30 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> + ;; Is this a regexp to match single shell arguments?
>> + ;; I guess so. Does someone know?
>> (sh-arg-re "\\(\\(?:\"\\(?:[^\"]\\|\\\\\"\\)+\"\\|'[^']+'\\|[^\"' \t\n]\\)+\\)")
>
> Yes, that's what it's intended to do.
It would appear to make minced meat from
"\\" "\\"
as far as I can see. Would probably need something like
(sh-arg-re "\\(\\(?:\"\\(?:[^\\\"]\\|\\\\[^\"]\\)+\"\\|'[^']+'\\|[^\"' \t\n]\\)+\\)")
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
prev parent reply other threads:[~2006-07-28 7:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 17:32 grep error because of bad previous input Sam Steingold
2006-07-27 17:51 ` Chong Yidong
2006-07-27 18:16 ` Sam Steingold
2006-07-27 23:46 ` Richard Stallman
2006-07-28 7:11 ` Stefan Monnier
2006-07-28 7:31 ` David Kastrup [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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85d5bqjid1.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=sds@podval.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).