DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5906>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5906
Can't pass double quotes as an argument, turns into whitespace
------- Additional Comments From bodewig@apache.org 2002-06-11 15:01 -------
If you change the second <arg> to read <arg value="""" /> you
get 6.
Same is true for <arg value="" />, which probably is what Erik wants.
The code you are talking about is there to perform command line parsing in a way
similar to the shell - it has been written by a person with a very Unix-centric
world-view (and several artifacts like the special treatment of backslashes had
to be pulled already).
I think the check for balanced quotes is perfectly valid here, if you need a
quote, you'd use something like "'" in the line case or simply
use the value attribute which is the recommended way.
What remains is that this code simply drops the empty string between quotes
that immediately follow each other - I'll put it on my TODO list but recommend
to avoid the line attribute whereever it is possible.
--
To unsubscribe, e-mail: <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
|