Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

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
Task Type Bug Report
Category Scripts & Tools
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Very Low
Priority Normal
Reported Version 3.5.4
Due in Version 4.0.2
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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

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.

Loading...