ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 5906] - Can't pass double quotes as an argument, turns into whitespace
Date Tue, 11 Jun 2002 15:01:11 GMT
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="&quot;&quot;" /> 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 &quot;&apos;&quot; 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>


Mime
View raw message