stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-825) rw_shell_expand() doesn't interpret quotes
Date Thu, 03 Apr 2008 23:23:24 GMT
rw_shell_expand() doesn't interpret quotes
------------------------------------------

                 Key: STDCXX-825
                 URL: https://issues.apache.org/jira/browse/STDCXX-825
             Project: C++ Standard Library
          Issue Type: Improvement
          Components: Test Driver
    Affects Versions: trunk
            Reporter: Martin Sebor
            Assignee: Travis Vitek
            Priority: Minor
             Fix For: 4.3


Quoting from this [post|http://www.nabble.com/spaces-in-rw_xxx_expand%28%29-tt16385194.html]:

{quote}
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:

{noformat}
     "a{b\ c,d}"    ==> "ab c ad"
     "a{b' 'c,d}"
     "a{b" "c,d}"
{noformat}

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.
{quote}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message