On Fri, Jan 7, 2011 at 11:05, Alexander Enrique Urieles Nieto <aeuriel...@gmail.com> wrote: > On Fri, Jan 7, 2011 at 9:54 AM, Ondra Medek <xmed...@gmail.com> wrote: > >> Hi, >> >> do documentation of complete-ant-cmd.pl should be changed, see also >> http://marius.scurtescu.com/2005/03/23/ant_bash_completion >> >> --- complete-ant-cmd.pl.orig 2008-06-27 05:03:56.000000000 +0200 >> +++ complete-ant-cmd.pl 2011-01-07 09:53:30.062500000 +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: >> # >> > As far as I know, the dollar-sign is a bash convention. > > Best regards, > > Alexander. >
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