Issue with bash completion

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

 



Hi,

After the upgrade from Fedora 16 to Fedora 17, completion for any of my
wrapper functions (for standard tools) are not working. To give an
example, I have a wrapper around find called find_ext. I want it to
complete just like GNU find so I define the following completion:

  complete -F _find find_ext

However this does not work. Completion is working for find itself, just
not my wrapper function. I see that the completion function `_find` is
not even defined in my shell (there is no output for `declare -f
_find`).

This is even more surprising since I see that _find is defined in
/usr/share/bash-completion/completions/find. However I could not find
anything in /usr/share/bash-completion/bash_completion that actually
sources the files in /usr/share/bash-completion/completions/ (although
it does for /etc/bash_completion.d/).

Has something changed drastically? How do I make my wrappers complete
using standard completion functions?

Thanks in advance for any ideas.

PS: When I use a custom completion function (with none of the standard
    ones inside) it works as expected.

-- 
Suvayu

Open source is the future. It sets us free.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux