[Bash-completion-devel] Removal of " -o filenames" to " complete"

Ville Skyttä ville.skytta at iki.fi
Wed Nov 3 19:23:50 UTC 2010


On Wednesday 03 November 2010, Ville Skyttä wrote:
> On Wednesday 03 November 2010, Freddy Vulto wrote:
> > I had one test failing with the new _compopt_o_filenames, on both bash-3
> > 
> > and bash-4:
> >     Running ./completion/ls.exp ...
> >     FAIL: ~part should complete to ~full
> 
> Interesting, it didn't fail for me.
> 
> > I think it is fixed by adding a call to _compopt_o_filenames within
> > _tilde, see commit dfb8406.
> 
> That doesn't seem to cause any harm here either, thanks.

...on the contrary actually; before your fix "ls ~u<TAB>" completed to "ls 
~user " for all users, whereas after the fix it completes to "ls ~user/" for 
users whose home dirs do exist as it should.

On my system ls.exp ends up testing "ls ~avahi-autoipd" and avahi-autoipd's 
home dir does not exist, perhaps that's why it passed.  Maybe the test case 
should be modified so that it checks the existence of the chosen user's home 
dir and if it does exist, expects to see a slash appended to it?



More information about the Bash-completion-devel mailing list