From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: grep error because of bad previous input Date: Fri, 28 Jul 2006 09:31:22 +0200 Message-ID: <85d5bqjid1.fsf@lola.goethe.zz> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154071928 5463 80.91.229.2 (28 Jul 2006 07:32:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Jul 2006 07:32:08 +0000 (UTC) Cc: sds@podval.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 28 09:32:06 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6Mp8-0000jZ-Ur for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 09:31:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Mp8-0003VO-9d for ged-emacs-devel@m.gmane.org; Fri, 28 Jul 2006 03:31:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6Moo-0003Uv-Uv for emacs-devel@gnu.org; Fri, 28 Jul 2006 03:31:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6Mon-0003UE-OM for emacs-devel@gnu.org; Fri, 28 Jul 2006 03:31:33 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6Mon-0003UB-JQ for emacs-devel@gnu.org; Fri, 28 Jul 2006 03:31:33 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6Mqj-0005cQ-RQ for emacs-devel@gnu.org; Fri, 28 Jul 2006 03:33:33 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G6Mog-000861-9D; Fri, 28 Jul 2006 03:31:26 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id 1916C1C3D4FB; Fri, 28 Jul 2006 09:31:22 +0200 (CEST) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "Fri, 28 Jul 2006 03:11:30 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57725 Archived-At: Stefan Monnier 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