W3C home > Mailing lists > Public > xproc-dev@w3.org > March 2010

Re: empty arg in p:exec

From: Romain Deltour <rdeltour@gmail.com>
Date: Fri, 19 Mar 2010 18:14:28 +0100
Message-Id: <F484CB25-9193-4B3A-BC87-9E1B50E9E0C5@gmail.com>
To: xproc-dev@w3.org
Well, I guess you can always use another args separator for such  
corner cases, along with entities to escape the quotes like in:

<p:exec command="cmd" args=" !&quot;_'*:,   " arg-separator="%">

I was just considering if there should be an exception in the default  
case (with the space separator), as one would expect a double space to  
be counted as one space (like in a command line). Maybe it's a bad  
idea to introduce an exception after all...

Romain.

Le 19 mars 10 à 15:41, Florent Georges a écrit :

> On 19 March 2010 08:59, Romain Deltour wrote:
>
>> The issue is caused by the double space between "-quiet yes" and
>> "-show-warnings no". The default args separator is a space, which  
>> means that
>> the arg list computed by Calabash is
>> [-asxml,--quiet,yes,,--show-warnings,no]. It took me a while to get  
>> over
>> this one!
>
>  A tricky one, sure.  From my reading of the spec, this is the
> required behavior.  It seems that is going to lead to the same
> "not-really-strict-language" issues as with the shells.  I would
> rather prefer something like:
>
>    <arg>-asxml</arg>
>    <arg>--quiet</arg>
>    <arg>yes</arg>
>    <arg>--show-warnings</arg>
>    <arg>no</arg>
>
>  Which could permit everything:
>
>    <arg> !"_'*:,   </arg>
>
>  Regards,
>
> -- 
> Florent Georges
> http://www.fgeorges.org/
Received on Friday, 19 March 2010 17:15:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 19 March 2010 17:15:06 GMT