Return-Path: Delivered-To: apmail-stdcxx-dev-archive@www.apache.org Received: (qmail 1241 invoked from network); 1 Apr 2008 23:55:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Apr 2008 23:55:02 -0000 Received: (qmail 64776 invoked by uid 500); 1 Apr 2008 23:55:01 -0000 Delivered-To: apmail-stdcxx-dev-archive@stdcxx.apache.org Received: (qmail 64760 invoked by uid 500); 1 Apr 2008 23:55:01 -0000 Mailing-List: contact dev-help@stdcxx.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@stdcxx.apache.org Delivered-To: mailing list dev@stdcxx.apache.org Received: (qmail 64751 invoked by uid 99); 1 Apr 2008 23:55:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 16:55:01 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Apr 2008 23:54:19 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JgqJD-0001PO-2i for dev@stdcxx.apache.org; Tue, 01 Apr 2008 16:54:31 -0700 Message-ID: <16431767.post@talk.nabble.com> Date: Tue, 1 Apr 2008 16:54:31 -0700 (PDT) From: Martin Sebor To: dev@stdcxx.apache.org Subject: Re: spaces in rw_xxx_expand() In-Reply-To: <47EFD7E2.8000402@roguewave.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sebor@roguewave.com References: <47EFD7E2.8000402@roguewave.com> X-Virus-Checked: Checked by ClamAV on apache.org PING? Should I open an issue for this or is it something you're already working on or planning to? Martin Sebor wrote: > > In the shell, spaces that are otherwise treated as separators can > be either escaped or quoted to have them interpreted as ordinary > characters. The rw_xxx_expand() functions let me escape spaces but > they don't seem to like quoting. For example, the shell expands > the following three strings to the same result: > > "a{b\ c,d}" ==> "ab c ad" > "a{b' 'c,d}" > "a{b" "c,d}" > > but rw_brace_expand() fails on the last two. It should work the > same as the shell. > > In the change below I've enhanced the 0.braceexpand.cpp test to > exercise a number of (passing) test cases including plan as well > as escaped whitespace: > > http://svn.apache.org/viewvc?rev=642790&view=rev > > I think the same test cases should be added for quoted whitespace. > > Martin > > -- View this message in context: http://www.nabble.com/spaces-in-rw_xxx_expand%28%29-tp16385194p16431767.html Sent from the stdcxx-dev mailing list archive at Nabble.com.