[GTALUG] bash completion half broken on FC 27

Giles Orr gilesorr at gmail.com
Thu Jun 28 21:39:44 EDT 2018


I have two laptops, both running Fedora 27.  The main difference (from the
OS point of view) is how they got to F27: the newer one was a fresh install
at that version, whereas the other was upgraded step-by-step from F24.  The
other difference is the package sets, which vary somewhat - but both have
bash, bash-completion, and 'pass'.  (Since 'pass' is unsearchable, I'll
point -> passwordstore.org - liking it so far.)

On the older machine, Bash tab completion of files and subcommands works
fine with 'pass'.  On the newer machine, completion works for most things
like 'dnf' and 'ls' - but not for 'pass'.  I've traced this as well as I
could: the pass package installs
/usr/share/bash-completion/completions/pass .  That file should be sourced
by /usr/share/bash-completion/bash_completion which is sourced by
/etc/profile.d/bash_completion.sh, which is in turn sourced by both
/etc/bashrc and /etc/profile.  And my eyeball-diff says that all these
files are essentially matched on both machines (I opened and examined the
relevant clauses in every file named).

If I simply source /usr/share/bash-completion/completions/pass in a
terminal, 'pass' completion works.  So I thought "I'll use
~/.bash_completion to source it!"  But here I found another bit of
breakage: that file apparently doesn't get sourced (it does on the older
machine).

I can just throw a line 'source
/usr/share/bash-completion/completions/pass' into my own or the system's
bashrc, but I'd rather figure out the problem.  Any suggestions?

-- 
Giles
https://www.gilesorr.com/
gilesorr at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/talk/attachments/20180629/69c2f543/attachment.html>


More information about the talk mailing list