Hello Ondra,
thanks for the patch, committed in revision 1056313. I have learnt
something, I am using ant and bash every day and did not know this
script. Cool thing.
Let me know if I entered the patch correctly if you can check out the
updated version from svn. [1]
Antoine
[1]
http://svn.apache.org/repos/asf/ant/core/trunk/src/script/complete-ant-cmd.pl
On 1/7/2011 5:25 AM, Ondra Medek wrote:
Yep, dollar-sign is the BASH convetion in the command line, but not in
the ~/.bashrc. At least the .pl suffix should be added to the
complete-ant-cmd.pl. And I see it should be added for the Z-Shell
advice, too. So the patch may be:
--- complete-ant-cmd.pl.orig 2008-06-27 05:03:56.000000000 +0200
+++ complete-ant-cmd.pl 2011-01-07 11:21:18.343750000 +0100
@@ -19,7 +19,7 @@
#
# To install for Bash 2.0 or better, add the following to ~/.bashrc:
#
-# $ complete -C complete-ant-cmd ant build.sh
+# complete -C complete-ant-cmd.pl ant build.sh
#
# To install for Z-Shell 2.5 or better, add the following to ~/.zshrc:
#
@@ -27,7 +27,7 @@
# local args_line args
# read -l args_line
# set -A args $args_line
-# set -A reply $(COMP_LINE=$args_line complete-ant-cmd ${args[1]} $1)
+# set -A reply $(COMP_LINE=$args_line complete-ant-cmd.pl
${args[1]} $1)
# }
# compctl -K ant_complete ant build.sh
#
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org