ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank E. Weiss" <fra...@well.com>
Subject Re: Quoting issue
Date Wed, 05 Dec 2001 23:00:28 GMT
As a follow up, can the documentation for the arg tage be clarified? It says "a
single command-line argument; can contain space characters" but seems like it should
include other command-line parsing break characters such as double-quote and single
quote.

A side note: In Perl it is a common mistake to use exec with just one parameter:

exec "$cmd $parm1 $parm2 $parm3";

instead of

exec ($cmd, $parm1, $parm2, $parm3);

The first, bad, way causes all kinds of quoting grief. Unless, of course, you WANT
the shell to parse the command line before passing it to exec().

Just remember that the arguments to main() are universally a list, not a string.



--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message