FS#54910 - [surfraw] bash completion not included

Attached to Project: Community Packages
Opened by Tom Hale (Ataraxy) - Sunday, 23 July 2017, 08:20 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Tuesday, 25 July 2017, 17:38 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Jaroslav Lichtblau (Dragonlord)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

The surfraw package does not include the file:

https://github.com/kisom/surfraw/blob/master/surfraw-bash-completion.IN

(It's not included in AUR-package https://www.archlinux.org/packages/extra/any/bash-completion/ either)

I don't want to pollute my path with all the various search providers as suggested here:
https://bbs.archlinux.org/viewtopic.php?id=120156

I do want to be able to type `surfraw` and hit tab and see only the completions which are applicable to surfraw.

Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:
This task depends upon

Closed by  Jaroslav Lichtblau (Dragonlord)
Tuesday, 25 July 2017, 17:38 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Convince upstream to change the default behavior.
Comment by Tom Hale (Ataraxy) - Sunday, 23 July 2017, 08:23 GMT
Sorry for the messy report. It's my first one, and I was expecting to be able to edit after creation.
Comment by Eli Schwartz (eschwartz) - Sunday, 23 July 2017, 16:02 GMT
  • Field changed: Summary (Bash completion not included in surfraw → [surfraw] bash completion not included)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Jaroslav Lichtblau (Dragonlord)
Their Makefile.am specifies the bash-completion file as noinst_DATA, which if I guess at my autotools correctly means they don't want it to be installed. :D
I have no idea why, that seems sheer madness...

Side note: that thread recommends /etc/bash_completion.d/ but the modern way is lazy-loading via /usr/share/bash-completion/completions/ since this completion script does not appear to do anything that requires loading automatically at shell startup.
Comment by Tom Hale (Ataraxy) - Monday, 24 July 2017, 04:55 GMT
I raised the Makefile.am question on the dev mailing list... hopefully it will soon be viewable at: http://lists.alioth.debian.org/pipermail/surfraw-devel/

Loading...