[Bash-completion-devel] _filedir only escaping whitespace when `-o filenames' is in effect?

Ville Skyttä ville.skytta at iki.fi
Wed Aug 12 21:03:50 UTC 2009


On Monday 03 August 2009, Freddy Vulto wrote:

> I don't see how `-o plusdirs' is going to save us here?

It probably doesn't - I just mentioned it in a context where I suggested 
current _filedir would be pretty much obsolete if we could assume -o plusdirs 
could be used everywhere.

> So I think our only options are to wait for bash-4 or to fix
> _filedir working correctly also if `-o filenames' isn't in effect.

I don't think we need to wait for bash 4, we can already start using $compopt 
(see the patch I just committed).  It won't do any good (nor harm) for bash < 
4 users, but leaving things as they are w.r.t. $filenames (and other similar 
things) and sprinkling $compopt for bash >= 4 users' pleasure where 
appropriate would be the approach I'd personally look into.



More information about the Bash-completion-devel mailing list