On Sun, Jan 07, 2007 at 06:10:55PM +0000, Penguin Lover Jorge Almeida squawked: > >Which version of bash completion? And which version of bash? > > > app-shells/bash-completion-20050121-r10 > app-shells/bash-3.1_p17
Okay, so you are on stable I see. > $ complete -p less > complete -o filenames -F _longopt less > >if you are in the directory with the README file, what happens if you > >do > > > >compgen -f RE > >compgen -d RE > > > >does it freeze up your computer? > > > No, it just does its stuff as expected. how about if you do compgen -F _longopt It should print out an unsorted list of all the files and subdirs of the given dir. Does it freeze up? If it doesn't, we can almost be sure that the problem is not with the bash-completion script itself, since invoking compgen -F _longopt should be the same as when you type "less <tab><tab>" on the commandline. (At the same time, it might put hunting down the exact problem out of my league.) You mentioned that it seems to freeze for all completion you tried, have you tried the following: unzip <tab><tab> (should just show a list of files ending in zip, ZIP jar, exe, pk3, etc...) xv (a list of image files) qiv (a list of image files) vim (a list of files that are not image files or archives) and kill <tab><tab> (should return a list of pids) can you please try those and report back? Best Wishes, W -- suddenly i have this urge to do like keenue reeves did in the matrix: open my eyes and say "i know quantum mechanics". too bad it just doesn't have the same ring to it. Sortir en Pantoufles: up 30 days, 17:18 -- gentoo-user@gentoo.org mailing list