On Mon, 14 Jan 2008, Bastian Kleineidam wrote:
Hi,
do you have python-optcomplete installed? You'll need this to enable
commandline completion for linkchecker.
Thanks for the hint, but there's still a bug. Looking at
/etc/bash_completion.d/linkchecker:
if type _optcomplete >/dev/null 2>&1; then
_optcomplete "$@"
else
_filedir
fi
So, since I don't have python-optcomplete, it should run "_filedir". As I
already explained, that is not working: when I have the start of a filename,
and press TAB, it gives me a list of all the files and directories in that
directory, not just those starting with the prefix I have typed.
To be very clear, here's an example:
$ls
a b c
$linkchecker a_<TAB>
a b c
i.e. although I have typed "a" already, it still lists "b" and "c". I have
used _ to mark the position of the caret. Obviously this doesn't happen with
most commands:
$ls
a b c
$ls a_<TAB>
gives:
$ls a _
i.e. ls completes properly, understands that "a" is a unique filename, so
advances the cursor. If it weren't unique, it would list all files starting
with "a".
I hope it's now obvious what the problem is.
--
http://rrt.sc3d.org/ | statistics, n. the lore of large numbers
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]