Dare I say it:

this used to be a problem for the Avalon CLI package used by JMeter,
but it was fixed a long time ago. [The parser is very different so I
doubt the fix would apply to CLI2]

The Avalon CLI was added to SVN some while ago; it would be nice if it
could be released ;-)

On 21/05/2008, James Carman <[EMAIL PROTECTED]> wrote:
> FYI:
>
>  https://issues.apache.org/jira/browse/CLI-150
>
>
>
>  On Tue, May 20, 2008 at 11:22 PM, James Carman
>  <[EMAIL PROTECTED]> wrote:
>  > What type of parser are you using?
>  >
>  > On Tue, May 20, 2008 at 10:51 PM, Roland Roberts <[EMAIL PROTECTED]> wrote:
>  >> James Carman wrote:
>  >>>
>  >>> Why the leading space inside the quote?
>  >>>
>  >>
>  >> The first part of the answer was and is NO.  Quoting does not help.  
> Single
>  >> quotes, double quotes, backslashes, nada, nothing, zip, zilch, no effect.
>  >>
>  >> The second part of the answer was IF I DO and put the quote at the
>  >> beginning, then the parser does not consider it to be an option, but it
>  >> fails to convert to an integer.
>  >>
>  >> Quoting doesn't help.
>  >>
>  >> roland
>  >>>
>  >>> On Tue, May 20, 2008 at 5:51 PM, Roland Roberts <[EMAIL PROTECTED]>
>  >>> wrote:
>  >>>
>  >>>>
>  >>>> James Carman wrote:
>  >>>>
>  >>>>>
>  >>>>> Can you quote it?
>  >>>>>
>  >>>>
>  >>>> No.  If I do
>  >>>>
>  >>>> foo --value " -2"
>  >>>>
>  >>>> it "works" but then 'new Integer(" -2") throws NumberException; it
>  >>>> doesn't
>  >>>> like leading spaces.
>  >>
>  >> --
>  >>                       PGP Key ID: 66 BC 3B CD
>  >> Roland B. Roberts, PhD                             RL Enterprises
>  >> [EMAIL PROTECTED]                            6818 Madeline Court
>  >> [EMAIL PROTECTED]                           Brooklyn, NY 11220
>  >>
>  >>
>  >> ---------------------------------------------------------------------
>  >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>  >> For additional commands, e-mail: [EMAIL PROTECTED]
>  >>
>  >>
>  >
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to