FS#27860 - bash completion doesn't work for 'pacman -U *.pkg.tar'
Attached to Project:
Pacman
Opened by J (J) - Saturday, 07 January 2012, 16:36 GMT
Last edited by Allan McRae (Allan) - Monday, 09 January 2012, 00:40 GMT
Opened by J (J) - Saturday, 07 January 2012, 16:36 GMT
Last edited by Allan McRae (Allan) - Monday, 09 January 2012, 00:40 GMT
|
Details
Setting PKGEXT=".pkg.tar" in a PKGBUILD produces a package
ending in '.pkg.tar'. Pacman's bash completion for the -U
--upgrade operation will complete a package ending in
'.pkg.tar.gz' or '.pkg.tar.xz', but not '.pkg.tar'.
This behaviour seems to be defined in line 101 of /etc/bash_completion.d/pacman: " compopt -o filenames; _filedir 'pkg.tar.*'" |
This task depends upon
Closed by Allan McRae (Allan)
Monday, 09 January 2012, 00:40 GMT
Reason for closing: Fixed
Additional comments about closing: commits 24c166f4 and 102e6209
Monday, 09 January 2012, 00:40 GMT
Reason for closing: Fixed
Additional comments about closing: commits 24c166f4 and 102e6209
Comment by Dan McGee (toofishes) -
Saturday, 07 January 2012, 17:02 GMT
Patches welcome to fix this, should be an easy fix (zsh might have
the same problem as well).
Comment by
canyonknight (canyonknight) -
Saturday, 07 January 2012, 21:33 GMT
Patches attached.
Comment by Allan McRae (Allan) -
Sunday, 08 January 2012, 12:01 GMT
Patches look fine to me (although not tested here...). Pulled to
my git repo.
bash-completion.patch
(0.9 KiB)