[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grep error because of bad previous input
From: |
David Kastrup |
Subject: |
Re: grep error because of bad previous input |
Date: |
Fri, 28 Jul 2006 09:31:22 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
Stefan Monnier <address@hidden> 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