On Sun, 7 Jan 2007, Willie Wong wrote:
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?
It doesn't freeze, and it displays what you said. However, the first two output lines are: ash: compgen: warning: -F option may not work as you expect bash: COMP_WORDS: bad array subscript
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?
Yes, it all works as expected. I also tried "userdel" as root, and it displays the names of existing users.
The trivial filename completion ("less RE") also works. The same for tar, which displays "A c d r t u x". So, everything seem right. The problem is that it froze the box then, even if not now. I checked with top that there was nothing else competing for ressources. I suppose I'll wait to see whether the problem comes back... Thanks, Jorge -- gentoo-user@gentoo.org mailing list