a couple of issues with Lmod and 'man' bash completion

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

The first issue has to do with 'man' tab completion not working when 'Lmod' 
package is installed. To debug I enabled expansion in the interactive shell on 
two systems -- a working one shown below as 'mha' and the broken one ('pc96'), 
both running F25 up to date:

    set -x

followed by:
    
    man dnf<Tab>
    Ctrl-C

and then diff-ing the output:

   omiday ~ $ diff _man-mha _man-pc96 
   1c1
   < mha ~ $ man dnf+ local cmd=man
   ---
   > pc96 ~ $ man dnf+ local cmd=man
   248,252c248,250
   < + local manpath=
   < + [[ -z '' ]]
   < ++ manpath
   < + manpath=/usr/local/share/man:/usr/share/man
   < + [[ -z /usr/local/share/man:/usr/share/man ]]
   ---
   > + local manpath=/usr/share/lmod/lmod/share/man::
   > + [[ -z /usr/share/lmod/lmod/share/man:: ]]
   > + [[ -z /usr/share/lmod/lmod/share/man:: ]]
   256c254
   < + manpath=/usr/local/share/man:/usr/share/man:
   ---
   > + manpath=/usr/share/lmod/lmod/share/man:::
   258c256
   < + manpath='/usr/local/share/man/*man*/dnf* /usr/share/man/*man*/dnf*  /usr/local/share/man/*cat*/dnf* /usr/share/man/*cat*/dnf* '
   ---
   > + manpath='/usr/share/lmod/lmod/share/man/*man*/dnf* /*man*/dnf* /*man*/dnf*  /usr/share/lmod/lmod/share/man/*cat*/dnf* /*cat*/dnf* /*cat*/dnf* '
   260c258
   < ++ eval command ls '/usr/local/share/man/*man*/dnf* /usr/share/man/*man*/dnf*  /usr/local/share/man/*cat*/dnf* /usr/share/man/*cat*/dnf* '
   ---
   > ++ eval command ls '/usr/share/lmod/lmod/share/man/*man*/dnf* /*man*/dnf* /*man*/dnf*  /usr/share/lmod/lmod/share/man/*cat*/dnf* /*cat*/dnf* /*cat*/dnf* '
   266c264
   < + local i start=11
   ---
   > + local i start=0
   289,290c287,288
   < + (( i=11 ))
   < + (( i < 11 ))
   ---
   > + (( i=0 ))
   > + (( i < 0 ))
 
I'm still unclear whether the non-empty 'manpath' interfering with 'man' tab 
completion is a bug in Lmod or in Bash completion but unset-ing MANPATH (which 
is where 'manpath' is initialized from) *before* 'man dnf<Tab>' (completion 
loading here is lazy) effectively fixes the tab completion. I can investigate 
further if needed but I'm hoping someone more knowledgeable will chime in.

Second issue: Lmod is required by python3-sphinx on Rawhide but not on F25 --  
here's the output from those two systems:

   omiday ~ $ rpm -qR python3-sphinx
   /bin/sh
   /usr/bin/python3
   /usr/sbin/alternatives
   Lmod
   config(python3-sphinx) = 1.5.1-1.fc26
   python(abi) = 3.6
   python-sphinx-locale = 1.5.1-1.fc26
   python3-babel
   python3-docutils
   python3-imagesize
   python3-jinja2
   python3-mock
   python3-pygments
   python3-requests
   python3-six
   python3-snowballstemmer
   python3-sphinx-theme-alabaster
   python3-sphinx_rtd_theme
   rpmlib(CompressedFileNames) <= 3.0.4-1
   rpmlib(FileDigests) <= 4.6.0-1
   rpmlib(PayloadFilesHavePrefix) <= 4.0-1
   rpmlib(PayloadIsXz) <= 5.2-1

   pc96 ~ $ rpm -qR python3-sphinx
   /bin/sh
   /bin/sh
   /usr/bin/python3
   /usr/sbin/update-alternatives
   /usr/sbin/update-alternatives
   python(abi) = 3.5
   python-sphinx-locale = 1.4.8-2.fc25
   python3-babel
   python3-docutils
   python3-imagesize
   python3-jinja2
   python3-mock
   python3-pygments
   python3-six
   python3-snowballstemmer
   python3-sphinx-theme-alabaster
   python3-sphinx_rtd_theme
   rpmlib(CompressedFileNames) <= 3.0.4-1
   rpmlib(FileDigests) <= 4.6.0-1
   rpmlib(PayloadFilesHavePrefix) <= 4.0-1
   rpmlib(PayloadIsXz) <= 5.2-1


If any of those are bugs please let me know under which component they should 
be filed under and I can do that myself. And assuming that the bash completion 
isn't a bug any pointers on how to fix it are more than welcome.

Thanks much.

-- 
Viorel
_______________________________________________
test mailing list -- test@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to test-leave@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Photo Sharing]     [Yosemite Forum]     [KDE Users]

  Powered by Linux