Hello community, here is the log from the commit of package aaa_base for openSUSE:Factory checked in at 2013-05-27 09:31:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/aaa_base (Old) and /work/SRC/openSUSE:Factory/.aaa_base.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "aaa_base" Changes: -------- --- /work/SRC/openSUSE:Factory/aaa_base/aaa_base.changes 2013-04-24 16:03:23.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.aaa_base.new/aaa_base.changes 2013-05-27 09:31:24.000000000 +0200 @@ -1,0 +2,5 @@ +Thu May 23 15:23:53 UTC 2013 - wer...@suse.de + +- Add bash completion function to load completions dynamically (bnc#821411) + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ aaa_base-13.1.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/aaa_base-13.1/files/etc/profile.d/complete.bash new/aaa_base-13.1/files/etc/profile.d/complete.bash --- old/aaa_base-13.1/files/etc/profile.d/complete.bash 2013-04-23 17:49:36.000000000 +0200 +++ new/aaa_base-13.1/files/etc/profile.d/complete.bash 2013-05-23 17:22:32.000000000 +0200 @@ -672,5 +672,20 @@ unset _def _dir _file _nosp # +# info bash 'Command Line Editing' 'Programmable Completion' +# +if ! type -t _completion_loader &> /dev/null ; then + _completion_loader () + { + local fallback=(-o default -o bashdefault -o filenames) + local dir=/usr/share/bash-completion/completions + local cmd="${1##*/}" + . "${dir}/${cmd}" &>/dev/null && return 124 + complete "${fallback[@]}" ${cmd} &>/dev/null && return 124 + } + complete -D -F _completion_loader +fi + +# # End of /etc/profile.d/complete.bash # -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org