Bug#551780: Fix by reading from avahi-browse with a timeout

2010-03-30 Thread Freddy Vulto
I like your solution leaving the user -/+ posix setting intact. Leaving a small chance the user does a ^C before we restore the setting I think is the best we can do. Letting bash-completion disable posix globally just doesn't feel good. The same goes for doing shopt -s extglob globally - see al

Bug#551780: [Bash-completion-devel] Bug#551780: Fix by reading from avahi-browse with a timeout

2010-03-23 Thread Crestez Dan Leonard
On Mon, 2010-03-22 at 19:07 +, Freddy Vulto wrote: > Crestez Dan Leonard gmail.com> writes: > > I had to mangle +o posix to get tests to pass. I don't know why the test > > suite puts the shell into posix mode anyway. > > Because users 'out there' might run bash-completion in bash POSIX mode.

Bug#551780: Fix by reading from avahi-browse with a timeout

2010-03-21 Thread Crestez Dan Leonard
I attached a possible fix for this. It will timeout if avahi-browse doesn't respond in 250 miliseconds. This seems reasonable; if the answer takes longer than that it's not useful for interactive use. This will still work for people who care about avahi. This seems more like a big in avahi or avah