ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 48985] Special characters like $ and § are not supported in password attribute of sshexec task
Date Thu, 21 Feb 2013 03:48:37 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48985

--- Comment #5 from Antoine Levy-Lambert <antoine@apache.org> ---
Looking at the attachment, I start to understand the problem of Sudheer.
It is a problem in the ant script, not a problem of the sshexec task.

The ant script ( $ANT_HOME/bin/ant ) puts all the command line arguments in a
variable $ANT_ARGS and then uses the eval internal shell command to kick off
java with the parameters to start ant.

Try to run your example like this :

sh -x ant-Dsecret='welcome$321' 

you will then see what happens internally.

if you run ant -Dsecret=welcome$321 the $3 is eliminated by the shell from
which you start the command before reaching the ant script.

as you wrote ant -Dsecret=welcome'\$'321 works because this is the only way to
convey the value that you want across both the calling shell and the internals
of the ant script.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message