Comments (5)
Sadly, the suggested fix doesn't work with the mdocml
package installed by default in Void Linux, which has neither a manpath
command nor a -w
option to man
(which in this case is a symlink to mandoc
). In this case I see no other solution but to process both /etc/man.conf
and the MANPATH
variable when completing.
from bash-completion.
Actually, there is another way to get completion candidates (including manual pages in directories in user-supplied MANPATH
) using mdocml
's apropos
command with a regex.
To get all completion candidates for the prefix perlc
:
$ echo $MANPATH
:/home/miki/perl5/man/
$ apropos 'Nm~^perlc'|sed -e 's/(.*$//'
perlcall
perlce
perlcheat
perlclib
perlcn
perlcommunity
perlcritic
perlcygwin
Note that this includes the candidate perlcritic
, which comes from the corresponding Perl module which I installed locally in /home/miki/perl5
. For this to work I needed to run makewhatis
as regular user, to create the database /home/miki/perl5/man/mandoc.db
, which is used by apropos
.
from bash-completion.
A fix is in 2af2986 (see PR #116), using man -k
.
Tested to work with both with man-db
and with mdocml
. Indeed the PR creates a number of new test cases which include a test for this bug.
from bash-completion.
I think that commit ID e6a4715 fixes this problem. Can this bug be closed?
from bash-completion.
It doesn't, as explained above. In my system (void linux, which uses mdocml as man)
$ manpath
bash: manpath: command not found
$ man -w
usage: man [-acfhklw] [-C file] [-M path] [-m path] [-S subsection]
[[-s] section] name ...
So essentially the manpath becomes hardcoded.
There is a more robust fix including tests for this and other cases in PR #116.
from bash-completion.
Related Issues (20)
- Latest CHANGELOG.md starts at `## 2.11...` and earlier HOT 2
- Redirection moved to the front wrongly affects completions HOT 2
- Gentoo update to 2.14 fails due to QA notice HOT 3
- tar file completion not working as expected under various option combinations HOT 2
- Enable .java Filename Completion for java Command HOT 2
- GCC tests fail on non-x86 platforms HOT 1
- CDPATH autocomplete is not working HOT 5
- 000_bash_completion_compat.bash sourced last in some locales HOT 1
- bash: _comp_initialize: command not found HOT 2
- [Regression] make autocompletion skips install HOT 3
- Native bash-completion 2 loader using complete -D HOT 5
- Completing a relative path with a space and softlinks inside, turns it absolute (which breaks creating relative softlinks) HOT 1
- Completions for 'alternatives' command are broken HOT 1
- xspec is ignored when Bash option `force_fignore` is unset HOT 5
- [2.14.0] rsync path completion fails if a folder name have a space
- Completions are not loaded in Linux+Homebrew HOT 3
- Feature request: generalized implementation of `_comp_command_offset` HOT 12
- File ~/.bash_completion no longer working after update to 2.14. HOT 2
- Hi, i need help regarding bash-completion. HOT 1
- allow completion files for, e.g., units HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bash-completion.