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

Re: empty arg in p:exec

From: David <dlee@calldei.com>
Date: Mon, 22 Mar 2010 10:05:34 -0400
Message-ID: <4BA7792E.5020900@calldei.com>
To: Norman Walsh <ndw@nwalsh.com>
CC: XProc Dev <xproc-dev@w3.org>
IMHO you need multiple contigous delimiters intact for the cases where 
you actually want explicit empty arguments.

One might also argue that argument parsing is OS and program specific 
not just implementation specific.

Some OS's dont have the concept of separate arguments directly but 
rather a single string  "command line" which the app itself parses.
Although the obvious cases of this that I know of support separate 
arguments in C and Java API's then just re-quote them under the hood to 
pass to the exe ...
( e.g. Windows ... )

I personally dont think there is a good solution anywhere between 
"Single string command line" and fully seperated args aka 
<arg>arg1</arg> ... with no shortcut syntax (to avoid the arbitrary list 
of attributes.

Quite literally (and often under appreciated)
Quoting Is Hard.



David A. Lee

On 3/22/2010 8:40 AM, Norman Walsh wrote:
> Initially we did the obvious thing, delimited arguments by one or more
> spaces. Then we realized that we needed to handle the case where one
> of the arguments could include a space. That meant introducing some
> sort of quoting mechanism. That in turn meant that the args shortcut
> option would have*at least*  three quoting mechanisms: single and
> double quotes per XML plus whatever we added. Then there's the
> question
Received on Monday, 22 March 2010 14:06:07 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:16:51 UTC