Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417717 (bashcomp-spacepath) - [Tracker] bash completion files that fail with paths containing spaces
Summary: [Tracker] bash completion files that fail with paths containing spaces
Alias: bashcomp-spacepath
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
Keywords: Tracker
Depends on: 417925 417927 417715 417921 417923 417929 417945 417947 417949 417951 417953
  Show dependency tree
Reported: 2012-05-27 07:40 UTC by poletti.marco
Modified: 2024-03-03 22:41 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description poletti.marco 2012-05-27 07:40:57 UTC
Many bash completions call 'compopt -f' or 'compopt -d' inside $() instead of _filedir, and that means that they don't work with filenames/dirnames that contain spaces.

I reported one instance:

But then I discovered that there are a lot of completions that do this.

Just run:
* fgrep 'compgen -f' /etc/bash_completion.d/*
* fgrep 'compgen -d' /etc/bash_completion.d/*

To get an idea of how many completions have this problem.

One of:
_filedir -d
_filedir "$EXTENSIONS"

should be used instead.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-28 00:32:19 UTC
Please file new bug reports for any bashcomp files that need fixing so that each bug can be assigned to the packages' respective maintainers. Make all those bugs block this one.

Also, please respect the quiet of this tracker bug unless talk is about the tracker itself.