Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#55443 - [netctl] netctl-auto bash completion not installed in the correct dir

Attached to Project: Arch Linux
Opened by Adam S Levy (alaskanarcher) - Wednesday, 30 August 2017, 19:16 GMT
Last edited by Jouke Witteveen (jouke) - Tuesday, 10 October 2017, 16:01 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Florian Pritz (bluewind)
Jouke Witteveen (jouke)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The netctl package in core contains both netctl and netctl-auto bash completion functions. However, the netctl-auto completion functions are found in /usr/share/bash-completion/completions/netctl, which does not allow for the netctl-auto bash completions to be recognized.

When attempting a completion for netctl-auto, the default completion is used:
$ netctl-auto
Display all 106 possibilities? (y or n)

The simplest fix is to add a symlink to the netctl bash completion scripts named netctl-auto:
ln -s /usr/share/bash-completion/completions/netctl $pkgdir/usr/share/bash-completion/completions/netctl-auto

Alternatively a bash script just sourcing the netctl scripts named netctl-auto would work.

When such a file is installed the completion output looks like this:

$ netctl-auto
disable enable-all is-enabled --version
disable-all --help list
enable is-active switch-to

Additional info:
This is with the latest version of netctl (1.13-2) and bash-completion (2.7-1) on an up to date Arch system.


Steps to reproduce:
Install netctl and bash-completion and attempt a bash completion on netctl-auto.
Next install a symlink as described above, open a new bash shell to resource the completion files, and again attempt a completion on netctl-auto.
This task depends upon

Closed by  Jouke Witteveen (jouke)
Tuesday, 10 October 2017, 16:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  c1d60492

Loading...