debian/0000775000000000000000000000000012620427512007171 5ustar debian/rules0000775000000000000000000000174412562724351010265 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 VERSION=$(shell parsechangelog | grep ^Version | awk -F": " '{print $$2}' | cut -d"-" -f1) REMOVE=nmcli hwclock ionice mock modules rtcwake dmesg renice override_dh_auto_configure: dh_auto_configure # needed by the testsuite [ -d test/log ] || mkdir -p test/log [ -d test/tmp ] || mkdir -p test/tmp override_dh_compress: dh_compress -Xcompletions override_dh_installchangelogs: dh_installchangelogs CHANGES dh_bash-completion.1: debian/extra/debhelper/dh_bash-completion pod2man \ --center "Bash-Completion Debhelper" \ --release $(VERSION) \ $< > debian/extra/debhelper/$@ override_dh_install: dh_install for i in mtx; do \ rm -vf debian/bash-completion/etc/bash_completion.d/$$i; \ done for i in $(REMOVE); do \ rm -vf debian/bash-completion/usr/share/bash-completion/completions/$$i; \ done override_dh_auto_test: # nothing %: dh $@ \ --with autoreconf debian/control0000664000000000000000000000223712562724351010606 0ustar Source: bash-completion Section: shells Priority: standard Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Bash Completion Maintainers Uploaders: David Paleino Build-Depends: debhelper (>= 9~) , dh-autoreconf Build-Depends-Indep: perl Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/bash-completion/debian.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=bash-completion/debian.git Homepage: http://bash-completion.alioth.debian.org Package: bash-completion Architecture: all Multi-Arch: foreign Pre-Depends: dpkg (>= 1.15.7.2~) Depends: bash (>= 3.2) , ${misc:Depends} Breaks: xen-tools (<= 4.1-1) Replaces: bash , xen-tools (<= 4.1-1) , cryptsetup (<< 2:1.1.2-2) Description: programmable completion for the bash shell bash completion extends bash's standard completion behavior to achieve complex command lines with just a few keystrokes. This project was conceived to produce programmable completion routines for the most common Linux/UNIX commands, reducing the amount of typing sysadmins and programmers need to do on a daily basis. debian/postrm0000664000000000000000000000075312562724351010453 0ustar #!/bin/bash set -e case "$1" in purge) rm -f /etc/bash_completion # let's remove old bash-completion conffiles for f in $(find /etc/bash_completion.d/ -type f -name "*.dpkg-*"); do dpkg-maintscript-helper rm_conffile ${f%.dpkg-*} 1:1.3-1 -- "$@" done ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/postinst0000664000000000000000000000176012562724351011011 0ustar #!/bin/bash set -e case "$1" in configure) # let's remove old bash-completion conffiles for f in $(find /etc/bash_completion.d/ -type f -name "*.dpkg-*"); do dpkg-maintscript-helper rm_conffile ${f%.dpkg-*} 1:1.3-1 -- "$@" done if [ -x /usr/sbin/update-bash-completion ]; then update-bash-completion fi if dpkg --compare-versions "$2" le "1:2.1-3"; then if [ -d /etc/bash_completion.d/helpers ]; then rmdir --ignore-fail-on-non-empty /etc/bash_completion.d/helpers 2>/dev/null fi # disabled from Ubuntu, third party packages might have installed things here #if [ -d /etc/bash_completion.d ]; then # rmdir --ignore-fail-on-non-empty /etc/bash_completion.d 2>/dev/null #fi fi ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/manpages0000664000000000000000000000005412562724351010714 0ustar debian/extra/debhelper/dh_bash-completion.1 debian/docs0000664000000000000000000000001712562724351010050 0ustar README AUTHORS debian/links0000664000000000000000000000012512562724351010240 0ustar usr/share/doc/bash-completion/README.gz usr/share/doc/bash/README.bash_completion.gz debian/watch0000664000000000000000000000020212562724351010222 0ustar version=3 opts=uversionmangle=s/^(200.*)/0.\1/ \ http://bash-completion.alioth.debian.org/files/bash-completion-(\d+.*)\.tar\.bz2 debian/preinst0000664000000000000000000000161212562724351010606 0ustar #!/bin/sh set -e case "$1" in install|upgrade) if [ -e /usr/share/doc/bash/completion-contrib ]; then rm -rf /usr/share/doc/bash/completion-contrib fi # let's remove old bash-completion conffiles for f in $(dpkg-query -W -f='${Conffiles}\n' bash-completion | grep bash_completion.d | cut -d\ -f2); do dpkg-maintscript-helper rm_conffile $f 1:1.3-1 -- "$@" done if dpkg --compare-versions "$2" lt-nl 1:2.0-1 && dpkg --compare-versions "$2" ge 1:1.99-2 && [ -L /etc/bash_completion ] && [ "$(readlink /etc/bash_completion)" = \ /usr/share/bash-completion/bash_completion ]; then rm -f /etc/bash_completion fi ;; abort-upgrade) ;; *) echo "preinst called with unknown argument \`$1'" >&2 exit 1 ;; esac #DEBHELPER# exit 0 debian/bug-presubj0000664000000000000000000000057112562724351011352 0ustar Before reporting a bug in bash-completion, please check that you don't have Acrobat's acroread.sh installed in /etc/bash_completion.d/. That completion, in fact, redefines internal bash-completion functions, breaking it. For more information about this issue, please read: - http://forums.adobe.com/thread/745833 - http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616018 debian/install0000664000000000000000000000026012562724351010566 0ustar debian/extra/bash_completion /etc/ debian/extra/debhelper/dh_bash-completion /usr/bin/ debian/extra/debhelper/bash_completion.pm /usr/share/perl5/Debian/Debhelper/Sequence/ debian/copyright0000664000000000000000000000154112562724351011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Source: http://bash-completion.alioth.debian.org/ Files: debian/* Copyright: © 2008, Luk Claes © 2008, Matthias Klose © 2008-2013, David Paleino License: GPL-2+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. Files: * Copyright: © 2006-2008, Ian Macdonald © 2008-2013, Bash Completion Maintainers License: GPL-2+ License: GPL-2+ On Debian systems, you can find the full text of the GNU General Public License v2 in `/usr/share/common-licenses/GPL-2'. debian/patches/0000775000000000000000000000000012562726232010626 5ustar debian/patches/series0000664000000000000000000000065712562724351012053 0ustar 00-fix_quote_readline_by_ref.patch 01-words_bad_array_subscript.patch 02-dpkg_ddeb.patch 03-disable_avahi_browse.patch 04-xine_add_more_formats.patch 05-fix_gcc_detection.patch 06-xpdf_support_compressed_pdf.patch 07-dpkg_support_raw-extract_vextract.patch 08-dpkg_fix_-W_option.patch 09-aptitude_safe-upgrade.patch 10-ifconfig_locale.patch 11-dont_return_from_sourced_script.patch 12-look_for_pod.patch 14-add-apt-bts747094.patch debian/patches/10-ifconfig_locale.patch0000664000000000000000000000177212562724351015177 0ustar From: Thilo Six Subject: use explicit C locale for ifconfig Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=704832 Origin: upstream, http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=a9db458 Forwarded: not-needed --- bash_completion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -836,7 +836,8 @@ _mac_addresses() # - ifconfig on Linux: HWaddr or ether # - ifconfig on FreeBSD: ether # - ip link: link/ether - COMPREPLY+=( $( { ifconfig -a || ip link show; } 2>/dev/null | sed -ne \ + COMPREPLY+=( $( \ + { LC_ALL=C ifconfig -a || ip link show; } 2>/dev/null | sed -ne \ "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]].*/\1/p" -ne \ "s/.*[[:space:]]HWaddr[[:space:]]\{1,\}\($re\)[[:space:]]*$/\1/p" -ne \ "s|.*[[:space:]]\(link/\)\{0,1\}ether[[:space:]]\{1,\}\($re\)[[:space:]].*|\2|p" -ne \ debian/patches/07-dpkg_support_raw-extract_vextract.patch0000664000000000000000000000376212562724351021065 0ustar From: Uwe Storbeck Subject: support more options for dpkg-deb Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698977 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=698977 Forwarded: no --- completions/dpkg | 44 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 41 insertions(+), 3 deletions(-) --- bash-completion.orig/completions/dpkg +++ bash-completion/completions/dpkg @@ -32,7 +32,7 @@ _comp_dpkg_purgeable_packages() } } -# Debian dpkg(8) completion +# Debian dpkg(1) completion # _dpkg() { @@ -54,7 +54,7 @@ _dpkg() case $prev in -c|-i|-A|-I|-f|-e|-x|-X|-W|--install|--unpack|--record-avail| \ --contents|--info|--fsys-tarfile|--field|--control|--extract| \ - --show) + --vextract|--show) _filedir '?(u|d)deb' return 0 ;; @@ -85,7 +85,45 @@ _dpkg() COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) [[ $COMPREPLY == *= ]] && compopt -o nospace } && -complete -F _dpkg dpkg dpkg-deb dpkg-query +complete -F _dpkg dpkg dpkg-query + +# Debian dpkg-deb(1) completion +# +_dpkg_deb() +{ + local cur prev words cword split + _init_completion -s || return + + _expand || return 0 + + local i=$cword + + # find the last option flag + if [[ $cur != -* ]]; then + while [[ $prev != -* && $i -ne 1 ]]; do + i=$((i-1)) + prev=${words[i-1]} + done + fi + + case $prev in + -c|-I|-W|-f|-e|-x|-X|-R|--contents|--info|--show|--field|--control| \ + --extract|--vextract|--raw-extract|--fsys-tarfile) + _filedir '?(u|d)deb' + return 0 + ;; + -b|--build) + _filedir -d + return 0 + ;; + esac + + $split && return + + COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) ) + [[ $COMPREPLY == *= ]] && compopt -o nospace +} && +complete -F _dpkg_deb dpkg-deb # Debian GNU dpkg-reconfigure(8) completion # debian/patches/12-look_for_pod.patch0000664000000000000000000000137512562724351014551 0ustar From: Carl Hayter Subject: perldoc: look for .pod in addition to .pm files Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708173 Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=708173 Forwarded: no --- helpers/perl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- bash-completion.orig/helpers/perl +++ bash-completion/helpers/perl @@ -23,8 +23,8 @@ sub print_modules_real { chdir($dir) or return; # print each file - foreach my $file (glob('*.pm')) { - $file =~ s/\.pm$//; + foreach my $file (glob('*.{pm,pod}')) { + $file =~ s/\.(?:pm|pod)$//; my $module = $base . $file; next if $module !~ /^\Q$word/; next if $seen{$module}++; debian/patches/09-aptitude_safe-upgrade.patch0000664000000000000000000000340512562724351016341 0ustar From: Nicolas Le Cam Subject: aptitude safe-upgrade accepts package names Forwarded: no Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673235 Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673235 --- completions/aptitude | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- bash-completion.orig/completions/aptitude +++ bash-completion/completions/aptitude @@ -26,7 +26,7 @@ _aptitude() local special i for (( i=0; i < ${#words[@]}-1; i++ )); do - if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then + if [[ ${words[i]} == @(@(|re)install|@(|un)hold|@(|un)markauto|@(dist|full|safe)-upgrade|download|show|forbid-version|purge|remove|changelog|why@(|-not)|keep@(|-all)|build-dep|@(add|remove)-user-tag|versions) ]]; then special=${words[i]} fi #exclude some mutually exclusive options @@ -38,7 +38,7 @@ _aptitude() case $special in install|hold|markauto|unmarkauto|dist-upgrade|full-upgrade| \ download|show|changelog|why|why-not|build-dep|add-user-tag| \ - remove-user-tag|versions) + remove-user-tag|versions|safe-upgrade) COMPREPLY=( $( apt-cache pkgnames $cur 2> /dev/null ) ) return 0 ;; @@ -56,7 +56,7 @@ _aptitude() case $prev in # don't complete anything if these options are found - autoclean|clean|forget-new|search|safe-upgrade|upgrade|update|keep-all) + autoclean|clean|forget-new|search|upgrade|update|keep-all) return 0 ;; -S) debian/patches/14-add-apt-bts747094.patch0000664000000000000000000000757612562724650014711 0ustar ## Description: add bash completion support for the new "apt" command ## Origin/Author: Michael Vogt ## Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=747094 Index: wily/completions/apt =================================================================== --- /dev/null +++ wily/completions/apt @@ -0,0 +1,95 @@ +# Debian apt(8) completion -*- shell-script -*- + +_apt() +{ + local sourcesdir="/etc/apt/sources.list.d" + local cur prev words cword + _init_completion || return + + # see if the user selected a command already + local COMMANDS=("install" "remove" "purge" "show" "list" + "update" "upgrade" "full-upgrade" "dist-upgrade" + "edit-sources" "help") + + local command i + for (( i=0; i < ${#words[@]}-1; i++ )); do + if [[ ${COMMANDS[@]} =~ ${words[i]} ]]; then + command=${words[i]} + break + fi + done + + # supported options per command + if [[ "$cur" == -* ]]; then + case $command in + install|remove|purge|upgrade|full-upgrade) + COMPREPLY=( $( compgen -W '--show-progress + --fix-broken --purge --verbose-versions --auto-remove + --simulate --dry-run + --download + --fix-missing + --fix-policy + --ignore-hold + --force-yes + --trivial-only + --reinstall --solver' -- "$cur" ) ) + return 0 + ;; + update) + COMPREPLY=( $( compgen -W '--list-cleanup + ' -- "$cur" ) ) + return 0 + ;; + list) + COMPREPLY=( $( compgen -W '--installed --upgradable + --manual-installed + -v --verbose + -a --all-versions + ' -- "$cur" ) ) + return 0 + ;; + show) + COMPREPLY=( $( compgen -W '-a --all-versions + ' -- "$cur" ) ) + return 0 + ;; + esac + fi + + # specific command arguments + if [[ -n $command ]]; then + case $command in + remove|purge) + if [[ -f /etc/debian_version ]]; then + # Debian system + COMPREPLY=( $( \ + _xfunc dpkg _comp_dpkg_installed_packages $cur ) ) + else + # assume RPM based + _xfunc rpm _rpm_installed_packages + fi + return 0 + ;; + install|show|list) + COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" \ + 2> /dev/null ) ) + return 0 + ;; + edit-sources) + COMPREPLY=( $( compgen -W '$( command ls $sourcesdir )' \ + -- "$cur" ) ) + return 0 + ;; + esac + fi + + # no command yet, show what commands we have + if [ "$command" = "" ]; then + COMPREPLY=( $( compgen -W '${COMMANDS[@]}' -- "$cur" ) ) + fi + + return 0 +} && +complete -F _apt apt + +# ex: ts=4 sw=4 et filetype=sh Index: wily/completions/Makefile.am =================================================================== --- wily.orig/completions/Makefile.am +++ wily/completions/Makefile.am @@ -7,6 +7,7 @@ bashcomp_DATA = a2x \ alias \ ant \ apache2ctl \ + apt \ apt-build \ apt-cache \ apt-get \ Index: wily/completions/Makefile.in =================================================================== --- wily.orig/completions/Makefile.in +++ wily/completions/Makefile.in @@ -178,6 +178,7 @@ bashcomp_DATA = a2x \ alias \ ant \ apache2ctl \ + apt \ apt-build \ apt-cache \ apt-get \ debian/patches/02-dpkg_ddeb.patch0000664000000000000000000000122712562724351013773 0ustar From: Sebastien Bacher Subject: dpkg also supports *.ddeb Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/568404 Origin: vendor Forwarded: no --- completions/dpkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- bash-completion.orig/completions/dpkg +++ bash-completion/completions/dpkg @@ -55,7 +55,7 @@ _dpkg() -c|-i|-A|-I|-f|-e|-x|-X|-W|--install|--unpack|--record-avail| \ --contents|--info|--fsys-tarfile|--field|--control|--extract| \ --show) - _filedir '?(u)deb' + _filedir '?(u|d)deb' return 0 ;; -b|--build) debian/patches/11-dont_return_from_sourced_script.patch0000664000000000000000000000164212562724351020567 0ustar From: Ville Skyttä Subject: don't return from sourced script Origin: upstream, http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=867282a Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741657 Forwarded: not-needed --- bash_completion.sh.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- bash-completion.orig/bash_completion.sh.in +++ bash-completion/bash_completion.sh.in @@ -1,5 +1,5 @@ # Check for interactive bash and that we haven't already been sourced. -[ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ] && return +if [ -n "$BASH_VERSION" -a -n "$PS1" -a -z "$BASH_COMPLETION_COMPAT_DIR" ]; then # Check for recent enough version of bash. bash=${BASH_VERSION%.*}; bmajor=${bash%.*}; bminor=${bash#*.} @@ -12,3 +12,5 @@ if [ $bmajor -gt 4 ] || [ $bmajor -eq 4 fi fi unset bash bmajor bminor + +fi debian/patches/08-dpkg_fix_-W_option.patch0000664000000000000000000000211712562724351015623 0ustar From: Luca Capello Subject: fix wrong completion for dpkg's -W option Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697513 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=697513 Forwarded: no --- completions/dpkg | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- bash-completion.orig/completions/dpkg +++ bash-completion/completions/dpkg @@ -52,9 +52,9 @@ _dpkg() fi case $prev in - -c|-i|-A|-I|-f|-e|-x|-X|-W|--install|--unpack|--record-avail| \ + -c|-i|-A|-I|-f|-e|-x|-X|--install|--unpack|--record-avail| \ --contents|--info|--fsys-tarfile|--field|--control|--extract| \ - --vextract|--show) + --vextract) _filedir '?(u|d)deb' return 0 ;; @@ -62,7 +62,7 @@ _dpkg() _filedir -d return 0 ;; - -s|-p|-l|--status|--print-avail|--list) + -s|-p|-l|-W|--status|--print-avail|--list|--show) COMPREPLY=( $( apt-cache pkgnames "$cur" 2>/dev/null ) ) return 0 ;; debian/patches/05-fix_gcc_detection.patch0000664000000000000000000000147512562724351015540 0ustar From: Tomas Janousek Subject: fix version detection for Debian's GCC Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665651 Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=665651 Forwarded: no --- completions/gcc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- bash-completion.orig/completions/gcc +++ bash-completion/completions/gcc @@ -47,8 +47,8 @@ _gcc() } && complete -F _gcc gcc g++ g77 gcj gpc && { - cc --version 2>/dev/null | grep -q GCC && complete -F _gcc cc || : - c++ --version 2>/dev/null | grep -q GCC && complete -F _gcc c++ || : + cc --version 2>/dev/null | grep -q 'GCC\|Debian' && complete -F _gcc cc || : + c++ --version 2>/dev/null | grep -q 'GCC\|Debian' && complete -F _gcc c++ || : } # ex: ts=4 sw=4 et filetype=sh debian/patches/03-disable_avahi_browse.patch0000664000000000000000000000350412562724351016225 0ustar From: Chris Jones Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574950 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/510591 Origin: vendor Forwarded: no --- bash_completion | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -1549,18 +1549,23 @@ _known_hosts_real() -S "$suffix" -W "$hosts" -- "$cur" ) ) fi + # This feature is disabled because it does not scale to + # larger networks. See: + # https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/510591 + # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574950 + # Add hosts reported by avahi-browse, if desired and it's available. - if [[ ${COMP_KNOWN_HOSTS_WITH_AVAHI:-} ]] && \ - type avahi-browse &>/dev/null; then + #if [[ ${COMP_KNOWN_HOSTS_WITH_AVAHI:-} ]] && \ + #type avahi-browse &>/dev/null; then # The original call to avahi-browse also had "-k", to avoid lookups # into avahi's services DB. We don't need the name of the service, and # if it contains ";", it may mistify the result. But on Gentoo (at # least), -k wasn't available (even if mentioned in the manpage) some # time ago, so... - COMPREPLY+=( $( compgen -P "$prefix$user" -S "$suffix" -W \ - "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \ - awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) ) - fi + #COMPREPLY+=( $( compgen -P "$prefix$user" -S "$suffix" -W \ + # "$( avahi-browse -cpr _workstation._tcp 2>/dev/null | \ + # awk -F';' '/^=/ { print $7 }' | sort -u )" -- "$cur" ) ) + #fi # Add hosts reported by ruptime. COMPREPLY+=( $( compgen -W \ debian/patches/01-words_bad_array_subscript.patch0000664000000000000000000000140412562724351017324 0ustar From: Barry Warsaw Subject: Fix bash: words: bad array subscript Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=741479 Origin: vendor, https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/1289597 Forwarded: yes, <20140312212729.17788.38099.reportbug@samba4.Chuck.local> --- bash_completion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -718,7 +718,7 @@ _init_completion() fi done - [[ $cword -eq 0 ]] && return 1 + [[ $cword -le 0 ]] && return 1 prev=${words[cword-1]} [[ ${split-} ]] && _split_longopt && split=true debian/patches/06-xpdf_support_compressed_pdf.patch0000664000000000000000000000231112562724351017701 0ustar From: Alfredo Finelli <0x4146@gmail.com> Subject: xpdf in Debian also supports compressed PDFs Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702498 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=702498 --- bash_completion | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -1883,7 +1883,8 @@ _install_xspec '!*.@(gif|jp?(e)g|tif?(f) _install_xspec '!*.@(@(?(e)ps|?(E)PS|pdf|PDF)?(.gz|.GZ|.bz2|.BZ2|.Z))' gv ggv kghostview _install_xspec '!*.@(dvi|DVI)?(.@(gz|Z|bz2))' xdvi kdvi _install_xspec '!*.dvi' dvips dviselect dvitype dvipdf advi dvipdfm dvipdfmx -_install_xspec '!*.[pf]df' acroread gpdf xpdf +_install_xspec '!*.[pf]df' acroread gpdf +_install_xspec '!*.@(pdf|fdf)?(.@(gz|xz|Z|bz2))' xpdf _install_xspec '!*.@(?(e)ps|pdf)' kpdf _install_xspec '!*.@(okular|@(?(e|x)ps|?(E|X)PS|[pf]df|[PF]DF|dvi|DVI|cb[rz]|CB[RZ]|djv?(u)|DJV?(U)|dvi|DVI|gif|jp?(e)g|miff|tif?(f)|pn[gm]|p[bgp]m|bmp|xpm|ico|xwd|tga|pcx|GIF|JP?(E)G|MIFF|TIF?(F)|PN[GM]|P[BGP]M|BMP|XPM|ICO|XWD|TGA|PCX|epub|EPUB|odt|ODT|fb?(2)|FB?(2)|mobi|MOBI|g3|G3|chm|CHM)?(.?(gz|GZ|bz2|BZ2)))' okular _install_xspec '!*.pdf' epdfview debian/patches/00-fix_quote_readline_by_ref.patch0000664000000000000000000000313412562724351017261 0ustar From: JuanJo Ciarlante Subject: fix _quote_readline_by_ref to: - avoid escaping 1st '~' (lp: #1288314) - avoid quoting if empty, else expansion without args only shows dirs (lp: #1288031) - replace double escaping to single (eg for completing file/paths with spaces) Origin: vendor, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739835 Forwarded: yes, <5328F418.100@canonical.com> --- bash_completion | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -536,13 +536,24 @@ __ltrim_colon_completions() # @param $2 Name of variable to return result to _quote_readline_by_ref() { - if [[ $1 == \'* ]]; then + if [ -z "$1" ]; then + # avoid quoting if empty + printf -v $2 %s "$1" + elif [[ $1 == \'* ]]; then # Leave out first character printf -v $2 %s "${1:1}" + elif [[ $1 == ~* ]]; then + # avoid escaping first ~ + printf -v $2 ~%q "${1:1}" else printf -v $2 %q "$1" fi + # Replace double escaping ( \\ ) by single ( \ ) + # This happens always when argument is already escaped at cmdline, + # and passed to this function as e.g.: file\ with\ spaces + [[ ${!2} == *\\* ]] && printf -v $2 %s "${1//\\\\/\\}" + # If result becomes quoted like this: $'string', re-evaluate in order to # drop the additional quoting. See also: http://www.mail-archive.com/ # bash-completion-devel@lists.alioth.debian.org/msg01942.html debian/patches/04-xine_add_more_formats.patch0000664000000000000000000000603112562724351016420 0ustar From: j^ (j) Subject: Add oga and ogx formats Origin: vendor Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/bash-completion/+bug/311525 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=496162 --- bash_completion | 8 ++++---- completions/mplayer | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) --- bash-completion.orig/bash_completion +++ bash-completion/bash_completion @@ -1892,13 +1892,13 @@ _install_xspec '!*.@(?(e)ps|pdf)' ps2pdf _install_xspec '!*.texi*' makeinfo texi2html _install_xspec '!*.@(?(la)tex|texi|dtx|ins|ltx|dbj)' tex latex slitex jadetex pdfjadetex pdftex pdflatex texi2dvi _install_xspec '!*.mp3' mpg123 mpg321 madplay -_install_xspec '!*@(.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|VOB|bin|dat|divx|DIVX|vcd|ps|pes|fli|flv|FLV|fxm|FXM|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp[234]|MP[234]|m4[pv]|M4[PV]|mkv|MKV|og[gmv]|OG[GMV]|t[ps]|T[PS]|m2t?(s)|M2T?(S)|wav|WAV|flac|FLAC|asx|ASX|mng|MNG|srt|m[eo]d|M[EO]D|s[3t]m|S[3T]M|it|IT|xm|XM)|+([0-9]).@(vdr|VDR))?(.part)' xine aaxine fbxine -_install_xspec '!*@(.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|VOB|bin|dat|divx|DIVX|vcd|ps|pes|fli|flv|FLV|fxm|FXM|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp[234]|MP[234]|m4[pv]|M4[PV]|mkv|MKV|og[gmv]|OG[GMV]|t[ps]|T[PS]|m2t?(s)|M2T?(S)|wav|WAV|flac|FLAC|asx|ASX|mng|MNG|srt|m[eo]d|M[EO]D|s[3t]m|S[3T]M|it|IT|xm|XM|iso|ISO)|+([0-9]).@(vdr|VDR))?(.part)' kaffeine dragon +_install_xspec '!*@(.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|VOB|bin|dat|divx|DIVX|vcd|ps|pes|fli|flv|FLV|fxm|FXM|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp[234]|MP[234]|m4[pv]|M4[PV]|mkv|MKV|og[agmvx]|OG[AGMVX]|t[ps]|T[PS]|m2t?(s)|M2T?(S)|wav|WAV|flac|FLAC|asx|ASX|mng|MNG|srt|m[eo]d|M[EO]D|s[3t]m|S[3T]M|it|IT|xm|XM)|+([0-9]).@(vdr|VDR))?(.part)' xine aaxine fbxine +_install_xspec '!*@(.@(mp?(e)g|MP?(E)G|wma|avi|AVI|asf|vob|VOB|bin|dat|divx|DIVX|vcd|ps|pes|fli|flv|FLV|fxm|FXM|viv|rm|ram|yuv|mov|MOV|qt|QT|wmv|mp[234]|MP[234]|m4[pv]|M4[PV]|mkv|MKV|og[agmvx]|OG[AGMVX]|t[ps]|T[PS]|m2t?(s)|M2T?(S)|wav|WAV|flac|FLAC|asx|ASX|mng|MNG|srt|m[eo]d|M[EO]D|s[3t]m|S[3T]M|it|IT|xm|XM|iso|ISO)|+([0-9]).@(vdr|VDR))?(.part)' kaffeine dragon _install_xspec '!*.@(avi|asf|wmv)' aviplay _install_xspec '!*.@(rm?(j)|ra?(m)|smi?(l))' realplay _install_xspec '!*.@(mpg|mpeg|avi|mov|qt)' xanim -_install_xspec '!*.@(ogg|m3u|flac|spx)' ogg123 -_install_xspec '!*.@(mp3|ogg|pls|m3u)' gqmpeg freeamp +_install_xspec '!*.@(og[ag]|m3u|flac|spx)' ogg123 +_install_xspec '!*.@(mp3|og[ag]|pls|m3u)' gqmpeg freeamp _install_xspec '!*.fig' xfig _install_xspec '!*.@(mid?(i)|cmf)' playmidi _install_xspec '!*.@(mid?(i)|rmi|rcp|[gr]36|g18|mod|xm|it|x3m|s[3t]m|kar)' timidity --- bash-completion.orig/completions/mplayer +++ bash-completion/completions/mplayer @@ -26,7 +26,7 @@ _mplayer() return 0 ;; -audiofile) - _filedir '@(mp3|mpg|ogg|w?(a)v|mid|flac|mka|ape)' + _filedir '@(mp3|mpg|og[ag]|w?(a)v|mid|flac|mka|ape)' return 0 ;; -font|-subfont) debian/maintscript0000664000000000000000000002150012562724351011455 0ustar rm_conffile /etc/bash_completion.d/helpers/perl 1:2.0-1 rm_conffile /etc/bash_completion.d/abook 1:2.0-1 rm_conffile /etc/bash_completion.d/ant 1:2.0-1 rm_conffile /etc/bash_completion.d/apache2ctl 1:2.0-1 rm_conffile /etc/bash_completion.d/apt 1:2.0-1 rm_conffile /etc/bash_completion.d/apt-build 1:2.0-1 rm_conffile /etc/bash_completion.d/aptitude 1:2.0-1 rm_conffile /etc/bash_completion.d/aspell 1:2.0-1 rm_conffile /etc/bash_completion.d/autoconf 1:2.0-1 rm_conffile /etc/bash_completion.d/automake 1:2.0-1 rm_conffile /etc/bash_completion.d/autorpm 1:2.0-1 rm_conffile /etc/bash_completion.d/bash-builtins 1:2.0-1 rm_conffile /etc/bash_completion.d/bind-utils 1:2.0-1 rm_conffile /etc/bash_completion.d/bitkeeper 1:2.0-1 rm_conffile /etc/bash_completion.d/bittorrent 1:2.0-1 rm_conffile /etc/bash_completion.d/bluez 1:2.0-1 rm_conffile /etc/bash_completion.d/brctl 1:2.0-1 rm_conffile /etc/bash_completion.d/bzip2 1:2.0-1 rm_conffile /etc/bash_completion.d/cardctl 1:2.0-1 rm_conffile /etc/bash_completion.d/cfengine 1:2.0-1 rm_conffile /etc/bash_completion.d/chkconfig 1:2.0-1 rm_conffile /etc/bash_completion.d/chsh 1:2.0-1 rm_conffile /etc/bash_completion.d/cksfv 1:2.0-1 rm_conffile /etc/bash_completion.d/clisp 1:2.0-1 rm_conffile /etc/bash_completion.d/configure 1:2.0-1 rm_conffile /etc/bash_completion.d/coreutils 1:2.0-1 rm_conffile /etc/bash_completion.d/cowsay 1:2.0-1 rm_conffile /etc/bash_completion.d/cpan2dist 1:2.0-1 rm_conffile /etc/bash_completion.d/cpio 1:2.0-1 rm_conffile /etc/bash_completion.d/crontab 1:2.0-1 rm_conffile /etc/bash_completion.d/cups 1:2.0-1 rm_conffile /etc/bash_completion.d/cryptsetup 1:2.0-1 rm_conffile /etc/bash_completion.d/cvs 1:2.0-1 rm_conffile /etc/bash_completion.d/cvsps 1:2.0-1 rm_conffile /etc/bash_completion.d/dd 1:2.0-1 rm_conffile /etc/bash_completion.d/dhclient 1:2.0-1 rm_conffile /etc/bash_completion.d/dict 1:2.0-1 rm_conffile /etc/bash_completion.d/dpkg 1:2.0-1 rm_conffile /etc/bash_completion.d/dselect 1:2.0-1 rm_conffile /etc/bash_completion.d/dsniff 1:2.0-1 rm_conffile /etc/bash_completion.d/dvd+rw-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/e2fsprogs 1:2.0-1 rm_conffile /etc/bash_completion.d/findutils 1:2.0-1 rm_conffile /etc/bash_completion.d/freeciv 1:2.0-1 rm_conffile /etc/bash_completion.d/freerdp 1:2.0-1 rm_conffile /etc/bash_completion.d/fuse 1:2.0-1 rm_conffile /etc/bash_completion.d/gcc 1:2.0-1 rm_conffile /etc/bash_completion.d/gcl 1:2.0-1 rm_conffile /etc/bash_completion.d/gdb 1:2.0-1 rm_conffile /etc/bash_completion.d/genisoimage 1:2.0-1 rm_conffile /etc/bash_completion.d/getent 1:2.0-1 rm_conffile /etc/bash_completion.d/gkrellm 1:2.0-1 rm_conffile /etc/bash_completion.d/gnatmake 1:2.0-1 rm_conffile /etc/bash_completion.d/gpg 1:2.0-1 rm_conffile /etc/bash_completion.d/gpg2 1:2.0-1 rm_conffile /etc/bash_completion.d/gzip 1:2.0-1 rm_conffile /etc/bash_completion.d/heimdal 1:2.0-1 rm_conffile /etc/bash_completion.d/hping2 1:2.0-1 rm_conffile /etc/bash_completion.d/iconv 1:2.0-1 rm_conffile /etc/bash_completion.d/iftop 1:2.0-1 rm_conffile /etc/bash_completion.d/ifupdown 1:2.0-1 rm_conffile /etc/bash_completion.d/imagemagick 1:2.0-1 rm_conffile /etc/bash_completion.d/info 1:2.0-1 rm_conffile /etc/bash_completion.d/iptables 1:2.0-1 rm_conffile /etc/bash_completion.d/ipmitool 1:2.0-1 rm_conffile /etc/bash_completion.d/iproute2 1:2.0-1 rm_conffile /etc/bash_completion.d/ipsec 1:2.0-1 rm_conffile /etc/bash_completion.d/ipv6calc 1:2.0-1 rm_conffile /etc/bash_completion.d/isql 1:2.0-1 rm_conffile /etc/bash_completion.d/jar 1:2.0-1 rm_conffile /etc/bash_completion.d/java 1:2.0-1 rm_conffile /etc/bash_completion.d/k3b 1:2.0-1 rm_conffile /etc/bash_completion.d/kldload 1:2.0-1 rm_conffile /etc/bash_completion.d/larch 1:2.0-1 rm_conffile /etc/bash_completion.d/ldapvi 1:2.0-1 rm_conffile /etc/bash_completion.d/lftp 1:2.0-1 rm_conffile /etc/bash_completion.d/lilo 1:2.0-1 rm_conffile /etc/bash_completion.d/links 1:2.0-1 rm_conffile /etc/bash_completion.d/lintian 1:2.0-1 rm_conffile /etc/bash_completion.d/lisp 1:2.0-1 rm_conffile /etc/bash_completion.d/lrzip 1:2.0-1 rm_conffile /etc/bash_completion.d/lsof 1:2.0-1 rm_conffile /etc/bash_completion.d/lvm 1:2.0-1 rm_conffile /etc/bash_completion.d/lzma 1:2.0-1 rm_conffile /etc/bash_completion.d/lzop 1:2.0-1 rm_conffile /etc/bash_completion.d/mailman 1:2.0-1 rm_conffile /etc/bash_completion.d/make 1:2.0-1 rm_conffile /etc/bash_completion.d/man 1:2.0-1 rm_conffile /etc/bash_completion.d/mc 1:2.0-1 rm_conffile /etc/bash_completion.d/mcrypt 1:2.0-1 rm_conffile /etc/bash_completion.d/mdadm 1:2.0-1 rm_conffile /etc/bash_completion.d/medusa 1:2.0-1 rm_conffile /etc/bash_completion.d/minicom 1:2.0-1 rm_conffile /etc/bash_completion.d/mkinitrd 1:2.0-1 rm_conffile /etc/bash_completion.d/module-init-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/monodevelop 1:2.0-1 rm_conffile /etc/bash_completion.d/mount 1:2.0-1 rm_conffile /etc/bash_completion.d/mplayer 1:2.0-1 rm_conffile /etc/bash_completion.d/msynctool 1:2.0-1 rm_conffile /etc/bash_completion.d/munin-node 1:2.0-1 rm_conffile /etc/bash_completion.d/mutt 1:2.0-1 rm_conffile /etc/bash_completion.d/mysqladmin 1:2.0-1 rm_conffile /etc/bash_completion.d/ncftp 1:2.0-1 rm_conffile /etc/bash_completion.d/net-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/nmap 1:2.0-1 rm_conffile /etc/bash_completion.d/ntpdate 1:2.0-1 rm_conffile /etc/bash_completion.d/openldap 1:2.0-1 rm_conffile /etc/bash_completion.d/openssl 1:2.0-1 rm_conffile /etc/bash_completion.d/open-iscsi 1:2.0-1 rm_conffile /etc/bash_completion.d/p4 1:2.0-1 rm_conffile /etc/bash_completion.d/perl 1:2.0-1 rm_conffile /etc/bash_completion.d/pine 1:2.0-1 rm_conffile /etc/bash_completion.d/pkg-config 1:2.0-1 rm_conffile /etc/bash_completion.d/pkg_install 1:2.0-1 rm_conffile /etc/bash_completion.d/pkgtools 1:2.0-1 rm_conffile /etc/bash_completion.d/pm-utils 1:2.0-1 rm_conffile /etc/bash_completion.d/portupgrade 1:2.0-1 rm_conffile /etc/bash_completion.d/postfix 1:2.0-1 rm_conffile /etc/bash_completion.d/postgresql 1:2.0-1 rm_conffile /etc/bash_completion.d/povray 1:2.0-1 rm_conffile /etc/bash_completion.d/procps 1:2.0-1 rm_conffile /etc/bash_completion.d/python 1:2.0-1 rm_conffile /etc/bash_completion.d/qdbus 1:2.0-1 rm_conffile /etc/bash_completion.d/qemu 1:2.0-1 rm_conffile /etc/bash_completion.d/quota-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/rcs 1:2.0-1 rm_conffile /etc/bash_completion.d/rdesktop 1:2.0-1 rm_conffile /etc/bash_completion.d/reportbug 1:2.0-1 rm_conffile /etc/bash_completion.d/resolvconf 1:2.0-1 rm_conffile /etc/bash_completion.d/rfkill 1:2.0-1 rm_conffile /etc/bash_completion.d/ri 1:2.0-1 rm_conffile /etc/bash_completion.d/rpcdebug 1:2.0-1 rm_conffile /etc/bash_completion.d/rpm 1:2.0-1 rm_conffile /etc/bash_completion.d/rpmcheck 1:2.0-1 rm_conffile /etc/bash_completion.d/rrdtool 1:2.0-1 rm_conffile /etc/bash_completion.d/rsync 1:2.0-1 rm_conffile /etc/bash_completion.d/rtcwake 1:2.0-1 rm_conffile /etc/bash_completion.d/samba 1:2.0-1 rm_conffile /etc/bash_completion.d/sbcl 1:2.0-1 rm_conffile /etc/bash_completion.d/screen 1:2.0-1 rm_conffile /etc/bash_completion.d/service 1:2.0-1 rm_conffile /etc/bash_completion.d/sh 1:2.0-1 rm_conffile /etc/bash_completion.d/shadow 1:2.0-1 rm_conffile /etc/bash_completion.d/sitecopy 1:2.0-1 rm_conffile /etc/bash_completion.d/smartctl 1:2.0-1 rm_conffile /etc/bash_completion.d/snownews 1:2.0-1 rm_conffile /etc/bash_completion.d/sqlite3 1:2.0-1 rm_conffile /etc/bash_completion.d/ssh 1:2.0-1 rm_conffile /etc/bash_completion.d/sshfs 1:2.0-1 rm_conffile /etc/bash_completion.d/strace 1:2.0-1 rm_conffile /etc/bash_completion.d/svk 1:2.0-1 rm_conffile /etc/bash_completion.d/sysbench 1:2.0-1 rm_conffile /etc/bash_completion.d/sysctl 1:2.0-1 rm_conffile /etc/bash_completion.d/sysv-rc 1:2.0-1 rm_conffile /etc/bash_completion.d/tar 1:2.0-1 rm_conffile /etc/bash_completion.d/tcpdump 1:2.0-1 rm_conffile /etc/bash_completion.d/unace 1:2.0-1 rm_conffile /etc/bash_completion.d/unrar 1:2.0-1 rm_conffile /etc/bash_completion.d/update-alternatives 1:2.0-1 rm_conffile /etc/bash_completion.d/util-linux 1:2.0-1 rm_conffile /etc/bash_completion.d/vncviewer 1:2.0-1 rm_conffile /etc/bash_completion.d/vpnc 1:2.0-1 rm_conffile /etc/bash_completion.d/wireless-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/wodim 1:2.0-1 rm_conffile /etc/bash_completion.d/wol 1:2.0-1 rm_conffile /etc/bash_completion.d/wtf 1:2.0-1 rm_conffile /etc/bash_completion.d/wvdial 1:2.0-1 rm_conffile /etc/bash_completion.d/xhost 1:2.0-1 rm_conffile /etc/bash_completion.d/xm 1:2.0-1 rm_conffile /etc/bash_completion.d/xmllint 1:2.0-1 rm_conffile /etc/bash_completion.d/xmlwf 1:2.0-1 rm_conffile /etc/bash_completion.d/xmms 1:2.0-1 rm_conffile /etc/bash_completion.d/xmodmap 1:2.0-1 rm_conffile /etc/bash_completion.d/xrandr 1:2.0-1 rm_conffile /etc/bash_completion.d/xrdb 1:2.0-1 rm_conffile /etc/bash_completion.d/xsltproc 1:2.0-1 rm_conffile /etc/bash_completion.d/xz 1:2.0-1 rm_conffile /etc/bash_completion.d/yp-tools 1:2.0-1 rm_conffile /etc/bash_completion.d/yum-arch 1:2.0-1 debian/changelog0000664000000000000000000006672612620424726011070 0ustar bash-completion (1:2.1-4.2ubuntu1) xenial; urgency=medium * Merge with Debian unstable. Remaining Ubuntu changes: - debian/patches/14-add-apt-bts747094.patch: Add support for the new "apt" command (LP: #1358154) -- Mario Limonciello Tue, 10 Nov 2015 11:30:40 -0600 bash-completion (1:2.1-4.2) unstable; urgency=medium * Non-maintainer upload. * fix location of bash-completion files Closes: #668254 -- Andreas Tille Tue, 18 Aug 2015 21:47:32 +0200 bash-completion (1:2.1-4.1ubuntu2) wily; urgency=medium * debian/patches/14-add-apt-bts747094.patch: - Fix add support for the new "apt" command. (LP: #1358154) Thanks to Simon Déziel for the initial work. -- Brian Murray Wed, 12 Aug 2015 13:29:05 -0700 bash-completion (1:2.1-4.1ubuntu1) wily; urgency=medium * Merge with Debian unstable. Remaining Ubuntu changes: - debian/patches/14-add-apt-bts747094.patch: Add support for the new "apt" command (LP: #1358154) -- Martin Pitt Mon, 18 May 2015 18:02:59 +0200 bash-completion (1:2.1-4.1) unstable; urgency=medium * Non-maintainer upload. * Remove dmesg and renice completions which will instead be shipped from src:util-linux in their respective packages (Closes: #755986) -- Andreas Henriksson Wed, 06 May 2015 20:32:10 +0200 bash-completion (1:2.1-4ubuntu1) vivid; urgency=medium * debian/patches/14-add-apt-bts747094.patch: - add support for the new "apt" command (LP: #1358154) -- Michael Vogt Thu, 06 Nov 2014 09:18:02 +0100 bash-completion (1:2.1-4) unstable; urgency=medium * Fix dont_return_from_sourced_script.patch: typo during the patch backport (Closes: #742362) -- David Paleino Sat, 22 Mar 2014 21:57:39 +0100 bash-completion (1:2.1-3) unstable; urgency=medium * Import patch from Ubuntu: - fix_quote_readline_by_ref.patch, thanks to JuanJo Ciarlante (Closes: #739835): + avoid escaping 1st '~' (LP: #1288314) + avoid quoting if empty, else expansion without args only shows dirs (LP: #1288031) + replace double escaping to single (eg for completing file/paths with spaces) - words_bad_array_subscript.patch, thanks to Barry Warsaw - dpkg_ddeb.patch: dpkg also supports *.ddeb, thanks to Sebastien Bacher (LP: #568404, Closes: #737881) - disable_avahi_browse.patch: slow, and doesn't scale to big networks, thanks to Chris Jones (Closes: #574950, LP: #510591) - xine_add_more_formats.patch: add oga and ogx to multimedia players (Closes: #496162, LP: #311525) * debian/maintscript, debian/postinst: - clean etc conffiles on upgrade since completion files are in /usr with 2.0, thanks to Sebastien Bacher * debian/control: marked Multi-Arch: foreign * debian/patches/: - fix_gcc_detection.patch, correctly parses Debian's GCC version number, thanks to Tomas Janousek (Closes: #665651) - xpdf_support_compressed_pdf.patch, in Debian xpdf also supports compressed files, thanks to Alfredo Finelli (Closes: #702498) - dpkg_support_raw-extract_vextract.patch: add support for more options in dpkg-deb, thanks to Uwe Storbeck (Closes: #698977) - dpkg_fix_-W_option.patch: -W|--show doesn't support udebs/ddebs, thanks to Luca Capello (Closes: #697513) - aptitude_safe-upgrade.patch: safe-upgrade supports package names, thanks to Nicolas Le Cam (Closes: #673235) - ifconfig_locale.patch: _mac_addresses() didn't consider locale awareness of ifconfig, thanks to Thilo Six (Closes: #704832) - dont_return_from_sourced_script.patch: avoid problems with shells not supporting returning from a sourced script (Closes: #741657) - look_for_pod.patch: perldoc: look for .pod in addition to .pm files, thanks to Carl Hayter (Closes: #708173) * debian/extra/debhelper/dh_bash-completion: fix installation process when more than one "proper snippet" is being installed, thanks to Jean-Michel Vourgère (Closes: #680852) * Dropped completions included in util-linux (Closes: #737672) -- David Paleino Wed, 19 Mar 2014 11:44:27 +0100 bash-completion (1:2.1-2) unstable; urgency=low * Don't install nmcli completion (Closes: #728742). -- David Paleino Tue, 05 Nov 2013 00:12:48 +0100 bash-completion (1:2.1-1) unstable; urgency=low * New upstream version: - fusermount: Complete curlftpfs-mounts for "fusermount -u" (Closes: #685377) - colormake: New make alias completion (LP: #743208, Closes: #682557) - ssh: Add -O argument completion (Closes: #680652) - tar: Support *.tar.lz (Closes: #703599) * Fixed typo in README.Debian (Closes: #689843) * Use canonical Vcs-* urls. * Standards-Version bump to 3.9.5, no changes needed. * debhelper compatibility bumped to 9. * Updated debian/copyright. -- David Paleino Mon, 04 Nov 2013 18:08:07 +0100 bash-completion (1:2.0-1) unstable; urgency=low [ David Paleino ] * New upstream version - Recognise symlinks to directories as directories (Closes: #666055) - sudo -e should list filenames instead of commands (Closes: #446355) - ri completion: defines function outside _* namespace (Closes: #669178) - overrides lyx's bash-completion (Closes: #662203) - complete 'apt-get changelog' (Closes: #659395) - sudo su {user} -c "sss failing because of quotation (LP: #783136) - scp and rsync error on local path completion (LP: #772571) * Standards-Version bump to 3.9.3, no changes needed * Updated debian/copyright * Added Pre-Depends on dpkg because of dpkg-maintscript-helper [ Jonathan Nieder ] * Replace /etc/bash_completion symlink with a shim script (Closes: #669180) * Remove no longer needed symlink-issue patch * Remove /etc/bash_completion symlink to make room for shim script on upgrade from versions 1:1.99-2 and 1:1.99-3. -- David Paleino Sun, 17 Jun 2012 21:08:02 +0200 bash-completion (1:1.99-3) unstable; urgency=low * Fixed issue when loading completions from the /etc/bash_completion symlink. -- David Paleino Wed, 11 Jan 2012 14:41:37 +0100 bash-completion (1:1.99-2) unstable; urgency=low * Make /etc/bash_completion a symlink to the new location, waiting for bash to update its scripts (Closes: #648319) * Dropped debian/NEWS * Drop references to old triggers-mechanism (Closes: #655286) -- David Paleino Tue, 10 Jan 2012 07:26:30 +0100 bash-completion (1:1.99-1) unstable; urgency=low * Uploading to unstable * New upstream pre-2.x snapshot - correctly list purgeable packages for dpkg --listfiles and dpkg --purge (Closes: #647684) - fix bash_completion paths in README (Closes: #647941) - _known_hosts_real: Handle more than two hostnames per known hosts line (Closes: #647352) - _known_hosts_real: Support > 1 files per *KnownHostsFile line (Closes: #650514) -- David Paleino Sun, 08 Jan 2012 00:29:16 +0100 bash-completion (1:1.90-1) experimental; urgency=low * bash-completion 2 preview: dynamic loading of completions - optionally fallback to generic file completion if _filedir returns nothing (Closes: #619014, LP: #533985) - various fixes (Closes: #622383) - apt: add 'download' to subcommands (Closes: #625234, LP: #720541) - aptitude: add 'versions' command (Closes: #604393) - dpkg-query: use the 'dpkg' completion (Closes: #642526) - lintian: remove --unpack-level (Closes: #623680) - rrdtool: complete filenames after commands (Closes: #577933) - provide profile.d hook for per user disabling of bash_completion (Closes: #593835) - mutt: support tildes when recursively sourcing muttrc files (Closes: #615134) - tar: improve tar *[cr]*f completions (Closes: #618734) * More checks in update-bash-completion: avoid unnecessary sourcing of completion if symlink already exists * Add message for users before they report a bug (debian/bug-presubj), I'm kind of fed-up with bugs caused by acroread.sh :/ * Removed patches merged upstream * Drop trigger-based completion loading * Standards-Version bump to 3.9.2, no changes needed -- David Paleino Thu, 03 Nov 2011 13:03:51 +0100 bash-completion (1:1.3-3) experimental; urgency=low * Include install-completions from upstream * Use new mechanism to symlink completions (Closes: #623880) -- David Paleino Mon, 25 Apr 2011 14:38:24 +0200 bash-completion (1:1.3-2) experimental; urgency=low * Change completion directory layout (00-change_completions_layout.patch) * Use autoreconf in debian/rules * Implement dpkg triggers and update-bash-completion script, and monthly cronjob to clean up unused completions. * Remove old UCF-related postinst tasks * Remove old conffiles, using dpkg-maintscript-helper * Added debian/NEWS, to explain the changes with this revision * Use Breaks+Replaces xen-tools, because of conflicting files * Added debian/README.Debian with instructions on the new layout, and how to enable completions -- David Paleino Tue, 12 Apr 2011 12:15:12 +0200 bash-completion (1:1.3-1) unstable; urgency=low * New upstream release - Fixed "service" completion, thanks to John Hedges (Closes: #586210) - Fixed typo in openssl completion (Closes: #609552) - Added ip completion (Closes: #600617) - Added _tilde(), fix ~username completion (Closes: #587095) - Add *.webm to mplayer file completions (Closes: #588079). * debian/watch: fix to handle .tar.bz2 files * Bump Standards-Version to 3.9.1, no changes needed * Install upstream CHANGES file * Update copyright years in debian/copyright * debian/rules: reflect new source layout -- David Paleino Sun, 06 Feb 2011 22:00:58 +0100 bash-completion (1:1.2-3) unstable; urgency=low * Provide a saner upgrade path from older bash packages, which shipped /etc/bash_completion (Closes: #564254) -- David Paleino Tue, 16 Nov 2010 09:06:24 +0100 bash-completion (1:1.2-2) unstable; urgency=low * debian/patches/: - 00-fix_586210.patch added, fixes a weird error while loading service(8) completions. Thanks to John Hedges (Closes: #586210) * debian/control: - added Replaces: cryptsetup (Closes: #586161) -- David Paleino Sun, 20 Jun 2010 09:57:35 +0200 bash-completion (1:1.2-1) unstable; urgency=low * New upstream release - contrib/munin-node fixed (Closes: #550943) - contrib/dpkg fixed -W and --show completing on .?(u)deb's (Closes: #552109) - added munindoc completion to contrib/munin-node, thanks to Tom Feiner (Closes: #553371) - contrib/cpio: added missing completions for -?, --help, --license, --usage, --version and (-p) --to-stdout (Closes: #557436) - added .okular completion to okular (Closes: #545530) - refreshed reportbug completion, added --from-buildd (Closes: #579471) - special-case "apt-get source" (Closes: #572000) - added lintian completion (Closes: #547361) - protect various completions from unusual user input by not embedding the input in external command arguments (Closes: #552631) - awk and sed usage portability fixes (Closes: #501479) - fix completion of usernames (Closes: #511788) - fix mount handling of escapes (LP: #219971, Closes: #511149) - update find completion (LP: #570113) * debian/patches/* removed, merged upstream * debian/control: - add Conflicts/Replaces on xen-tools (<= 4.1-1) (Closes: #550590) - Standards-Version bumped to 3.8.4, no changes needed * debian/links: remove dangling symlink in /usr/share/doc/bash (Closes: #565447) * debian/watch: fix regex to avoid old timestamp-based releases * debian/preinst: definitely remove anything in /usr/share/doc/bash/ * debian/source/format: using 3.0 (quilt) * debin/rules made minimal -- David Paleino Wed, 16 Jun 2010 19:03:06 +0200 bash-completion (1:1.1-3) unstable; urgency=low * debian/patches/03-fix_552631.patch fixed (Closes: #556251) -- David Paleino Sat, 14 Nov 2009 23:42:55 +0100 bash-completion (1:1.1-2) unstable; urgency=low * debian/control, debian/rules: added quilt infrastructure * debian/README.source added * debian/patches/: - 01-fix_550943.patch added, fixes function names (Closes: #550943) - 02-fix_552109.patch added, fixes -W and --show completion for dpkg-deb (Closes: #552109) - 03-fix_552631.patch added (Closes: #552631) * debian/control: - updated my email address - DMUA removed -- David Paleino Sat, 14 Nov 2009 18:10:49 +0100 bash-completion (1:1.1-1) unstable; urgency=low * New upstream release - fix svk completion using $filenames instead of $default (Closes: #524961) - fix typo in .ass subtitles completion for mplayer (Closes: #531337) - fix regression on man(1) completion: also complete on local .3pm files (Closes: #531343) - added avahi-discovered hosts to _known_hosts_real() (Closes: #518561) - added m4v completion to mplayer (Closes: #504213) - improve qemu completion (Closes: #534901) - added sshfs completion (shares the same as scp) (Closes: #545978) - added --no-generate to "apt-cache pkgnames" calls, make it faster on certain configurations (Closes: #547550) - add *.ogv to xine-based players (Closes: #540033) - fix sbcl file/dirname completion (Closes: #545743) - fix _quote_readline on bash 4 (Closes: #544024) - patched _known_hosts() to support multiple {Global,User}KnownHosts in SSH config files, thanks to Thomas Nilsson (Closes: #524190) - fix completing multiple hosts (Closes: #535585) * debian/extra/bash-completion.pm moved to bash_completion.pm (Closes: #535105) * debian/patches/ removed, merged upstream * debian/rules: - passing debian/CHANGES to dh_installchangelogs, it's missing from upstream tarball :( - rewritten using dh7 * debian/control: - debhelper Build-Dependency bumped to >= 7.0.50 - removed quilt Build-Dependency, no more used - added ${misc:Depends} dependency - Standards-Version bumped to 3.8.3, no changes needed * debian/compat bumped to 7 * debian/docs added * debian/install updated, using upstream buildsystem -- David Paleino Sat, 10 Oct 2009 18:11:00 +0200 bash-completion (1:1.0-3) unstable; urgency=low * debian/extra/bash-completion.pm added, thanks to Ryan Niebur (Closes: #530598) * debian/rules: added quilt support * debian/control: added quilt Build-Depends * debian/patches/: - 01-529510.patch added, checks for GNUish userland fail on GNU/kFreeBSD, GNU/kOpenSolaris, etc (Closes: #529510) - 02-514377.patch added, assumes .gz files can't be concatenated (Closes: #514377) - 03-522656.patch added, evince supports compressed dvi files (Closes: #522656) - 04-495883.patch added, aptitude: add build-dep to bash_completion (Closes: #495883) -- David Paleino Sat, 30 May 2009 19:36:14 +0200 bash-completion (1:1.0-2) unstable; urgency=low * Remove mtx completion from bash_completion.d/ (Closes: #522545) -- David Paleino Sat, 04 Apr 2009 21:16:38 +0200 bash-completion (1:1.0-1) unstable; urgency=low * New upstream release: - also see /usr/share/doc/bash-completion/changelog.gz - fix man -l completing filenames (Closes: #497074) - (Partly) fixed java classes completion (Closes: #496828). Look for FIXME in source. - dump to /dev/null error message from look(1) with no arguments (Closes: #495142) - set ssh as default for rsync (was rsh) (Closes: #492328) - added .oga, .ogv, .ogx to mplayer completion (Closes: #496162) - added .epub to unzip|zipinfo completion (Closes: #492476) - added ssh-copy-id completion (Closes: #491856) - moved ssh completion to separate file (Closes: #360628) - bogus completion when mounting subdirs fixed (Closes: #322238) - fix `apt-cache showsrc` completing only on source package names (Closes: #361535) - fixed bugs with gdb completion: - when an empty directory is in $PATH (thanks to Morita Sho) (Closes: #497597) - when a non-existing directory is in $PATH (Closes: #499780) - fix missing completion for "-n" and "-e" (we were using echo, now using printf) (thanks to Morita Sho) (Closes: #498105) - fixed gpg completion --@(export|@(?(l|nr|nrl)sign|edit)-key)) (Closes: #500316) - fixed .cb[rz] completion for evince (Closes: #502885) - added gpg2 completion (Closes: #489927) - fixed mplayer -skin completion (Closes: #501473) - fixed errors with POSIX enabled (Closes: #502804) - fixed dpkg-source wrong exit() with return() (Closes: #503317) - added --schedule-only to aptitude's completion (Closes: #502664) - added build-dep to aptitude's completion (Closes: #495883) - added support for `-F configfile' to _known_hosts(), ssh, scp and sftp, thanks to Freddy Vulto (Closes: #504141) - fixed sed quoting bug in _known_hosts(), thanks to Freddy Vulto (Closes: #504650) - allow for comments in known_hosts files (Closes: #511789) - fixed perl -I/-x completion, thanks to Freddy Vulto (Closes: #504547) - README updated: explain how to use bash-completion correctly. (Closes: #506560) - added qdbus completion, thanks to Terence Simpson (LP: #257903) - fixed completion of environment variables, thanks to Morita Sho (Closes: #272660) - fix dpkg completion bug: it listed only non-Essential packages (Closes: #511790) - fixed _dpkg_source completion (Closes: #503317) - remove unused UNAME local variable in _info() (Closes: #501843) - added .zip to jar completions (Closes: #521041) - Merge from Ubuntu: + consume error messages in configure completion (LP: #223882) (Mika Fischer) + quote $xspec in _filedir_xspec in case it is empty, which would cause errors if there was no match under failglob. (LP: #194419) (Mika Fischer) - Ville Skyttä: + remove duplicate cpio completion, thanks to Freddy Vulto (Closes: #512823) + fix awk error in "modprobe -r /" completion (Closes: #512556) - Jakob Unterwurzacher: + ps2pdf can run on .pdf files as well. (Closes: #516614, LP: #316943) * debian/links fixed (Closes: #494292) * debian/control: - fixed typo in the long description - added Vcs-* fields - Standards-Version to 3.8.1 - DMUA set - removed Luk Claes from Uploaders - Homepage added * debian/install: - correctly install contrib/* under /etc/bash_completion.d/ * debian/copyright updated * debian/extra/dh_bash-completion: - updated to support a list of files in debian/.bash-completion (Closes: #512917) * debian/rules: - install upstream CHANGES and AUTHORS too -- David Paleino Fri, 03 Apr 2009 14:21:43 +0200 bash-completion (20080705) unstable; urgency=low [ David Paleino ] * Added more completions to imagemagick (thanks to Nelson A. de Oliveira) (Closes: #487786) * Added xrandr completion (thanks to Anton Khirnov) (Closes: #487825) * Improving _gdb completion: - $filenames to $default (Closes: #463969) - also show directory names (i.e. compgen -d) in COMPREPLY. - added . to $PATH, to allow debugging "local" executables. - do not complete Bash's builtins (thanks to Morita Sho) [ Luk Claes ] * Remove use of ucf for /etc/bash-completion (Closes: #488171). -- Luk Claes Sat, 05 Jul 2008 16:14:15 +0200 bash-completion (20080617.5) unstable; urgency=medium * Revert way of setting environment variables (Closes: #487774). * Add equals sign to _get_cword for mutt_aliases (Closes: #482635). * Enhance mlayer completion (Closes: #487826, #487838). -- Luk Claes Tue, 24 Jun 2008 19:50:57 +0200 bash-completion (20080617.4) experimental; urgency=low [ David Paleino ] * Merged Ubuntu changes: - added quote(), quote_readline(), dequote() helper functions. - added _remove_word() - fixed _get_cword() - refactored _filedir using quote_readline() - refactored _filedir_xspec using quote_readline() - fixed COMPREPLY's in _iwconfig - fixed _cvs() - _known_hosts(): use files from UserKnownHostsFile options in addition to standard ones. - fixed _command() to correctly prune the command line - disabled completion of PostgreSQL users and databases - fixed _java_packages() - fixed _muttquery() - added flv/FLV completion to mplayer - added --installed to apt-cache - only complete on filenames for aspell - fixed code for exclusions compspecs - added code to gracefully handle debug options (set +/-v) -- Luk Claes Mon, 23 Jun 2008 19:25:25 +0200 bash-completion (20080617.3) unstable; urgency=low [ David Paleino ] * Fixed IFS for filedir_xspec - Thanks to Stefan Lippers-Hollmann (Closes: #487571) [ Luk Claes ] * Install dh-bash-completion to ease installation of completions. -- Luk Claes Mon, 23 Jun 2008 07:24:21 +0200 bash-completion (20080617.2) unstable; urgency=low [ David Paleino ] * New upstream release - provide a manpage for extra/dh_bash-completion - fix semi-serious problem with _filedir() (Closes: #487449) * debian/rules: - added rule to generate dh_bash-completion's manpage * debian/install, debian/dirs: - installing dh_bash-completion into /usr/bin * debian/control: - new package dh-bash-completion [ Luk Claes ] * Comment new package to make sure current fix gets in the archive first. * Add compression completion for vi(m). -- Luk Claes Sun, 22 Jun 2008 19:47:23 +0200 bash-completion (20080617.1) unstable; urgency=medium [ David Paleino ] * Urgency set to medium because the package is currently unusable. * New upstream sub-release - fixed some typos here and there which prevented bash completions at all (Closes: #487441). - really closing Debian bug #455510. -- Luk Claes Sun, 22 Jun 2008 00:22:53 +0200 bash-completion (20080617) unstable; urgency=low [ David Paleino ] * New upstream release - add more completions to aptitude (Closes: #432289) - fixed UTF-8 problem with _get_cword(), thanks to Andrei Paskevich (Closes: #472132) - fixed autoremove completion, thanks to Flavio Visentin (Closes: #474974) - cmf and CMF added to playmidi completion (Closes: #365658) - added rrdtool completion, thanks to Justin Pryzby (Closes: #428641) - added OpenDocument completion for unzip/zipinfo (.od{f,g,p,s,t}) (Closes: #472940) - fixed escaping problems with job control (i.e. disown, jobs, bg, fg): the argument is now surrounded by "" (Closes: #347316) - make mkdir complete also on filenames (Closes: #376433) - {bz,z}{cat,cmp,diff,egrep,fgrep,grep,less,more} now should complete on all filenames, not just compressed archives (just commented out) (Closes: #455510) - fixes Perl completion (Closes: #470742) - fixes get_cword -> _get_cword typo (Closes: #478596) - fixes _get_cword() function to properly handle filenames with whitespaces (Closes: #394636, #468254, #474094) - added .pdf.bz2 completion to evince (Closes: #424736) - added .svg completion to display (Closes: #441017) - added .m2ts completion to mplayer (Closes: #480879) - added extra/dh_bash-completion to ease future rewrite of bc. * debian/copyright - now in a fancier machine-parsable format. * debian/control: - added myself to Uploaders - debhelper Build-Depends updated to >= 6. * debian/watch: - improved current watch line regex - added (commented out) probable future watch line * debian/compat bumped to 6 * debian/dirs, debian/install and debian/links added * debian/rules: - refactored to make use of debian/{dirs,install,links} [ Steve Kemp ] * Applied patch to fix completion of umount command. (Closes: #470539) * Fixed the completion of Perl manpages. (Closes: #404976) * Added 'aif' to the filenames offed for completion for mplayer. (Closes: #474517) * Allow tsocks completion. (Closes: #409423) * Update mutt completion to handle local usernames. (Closes: #416655) * Update apt-get completion to include the flag "--no-install-recommends" (Closes: #475242) -- Luk Claes Sat, 21 Jun 2008 21:59:43 +0200 bash-completion (20060301-4) unstable; urgency=low * Add some fixes from Ubuntu: * Fix completion of filenames with spaces (Closes: #468254). * Fix parsing of SSH config files (Closes: #435117). * Change priority to standard (Closes: #471666). * Add some more completions for xine (Closes: #452083, #471249). * Fix completion of gzip (Closes: #351913). * Also use $HOSTFILE in hostname completion (Closes: #400380). -- Luk Claes Sat, 22 Mar 2008 23:10:30 +0000 bash-completion (20060301-3) unstable; urgency=low * Fix kpdf completion (Closes: #468163, #413374). * Fix completion of - or -- with _command (Closes: #415276). * Add sux to the complete -u list (Closes: #466089). * Add dvipdfm to the list of dvi programs (Closes: #396644). * Add --purge-unused option completion for aptitude (Closes: #438471). * Add divx extension completion for mplayer (Closes: #444294). * Add pdf.gz completion for evince (Closes: #456887). * Add --remove-all completion for update-alternatives (Closes: #269173). -- Luk Claes Wed, 05 Mar 2008 22:57:27 +0100 bash-completion (20060301-2) unstable; urgency=low * Take over the package. -- Luk Claes Wed, 27 Feb 2008 19:22:03 +0100 bash-completion (20060301-1) unstable; urgency=low * Upload to unstable. -- Matthias Klose Sat, 09 Feb 2008 23:18:20 +0100 bash-completion (20060301-0ubuntu2) hardy; urgency=low * Replace bash (<< 3.1dfsg-9), handle upgrade in preinst. * Exclude hashed hostnames from ssh host completion results. Closes: #428085. * Fix: ifup/down don't really complete. Closes: #463756. * Allow perl completion to complete filenames, complete -I and -x arguments. Closes: #443394. * Add find -wholename completion. Closes: #431220. * Handle whitespaces in $HOME for _known_hosts() completion. Closes: #414821. * dpkg -L: complete for removed-but-not-purged packages. Closes: #372156. * Complete for apt-get autoremove. Closes: #433542, #443816, #445332. * Update completion for mplayer (mka/flac). Closes: #340452. * Add ping6/fping6 completion. Closes: #413170. * Handle whitespace in paths for mount/umount completion. Closes: #367957. * apt-get: Support --auto-remove. LP: #60666. -- Matthias Klose Sat, 09 Feb 2008 23:11:32 +0100 bash-completion (20060301-0ubuntu1) hardy; urgency=low * Initial release, split out from the bash package. The software currently is unsupported upstream. * Don't try to set a readonly variable. LP: #149527. * Support purge in apt-get auto completion (Mathias Gug). LP: #151677. * evince: Autocomplete on cbr/cbz/djvu files. LP: #156200, #175220. Closes: #400678. * kdvi: complete .*\.dvi\.(gz|bz2). LP: #128234. * kpdf: Complete postscript files. LP: #162319. * Make completion working in the middle of a word (Adam Simpkins). LP: #139666. -- Matthias Klose Fri, 08 Feb 2008 16:46:34 +0100 debian/dirs0000664000000000000000000000017212562724351010063 0ustar etc/bash_completion.d usr/bin usr/share/doc/bash usr/share/doc/bash-completion usr/share/perl5/Debian/Debhelper/Sequence/ debian/extra/0000775000000000000000000000000012562726232010322 5ustar debian/extra/bash_completion0000664000000000000000000000005512562724351013413 0ustar . /usr/share/bash-completion/bash_completion debian/extra/debhelper/0000775000000000000000000000000012562726232012254 5ustar debian/extra/debhelper/dh_bash-completion.10000664000000000000000000001151612562724351016101 0ustar .\" Automatically generated by Pod::Man 2.1801 (Pod::Simple 3.05) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is turned on, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .ie \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . nr % 0 . rr F .\} .el \{\ . de IX .. .\} .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "DH_BASH-COMPLETION 1" .TH DH_BASH-COMPLETION 1 "2009-01-29" "1.x" "Bash-Completion Debhelper" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" dh_bash\-completion \- install bash completions for package .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fBdh_bash\-completion\fR [\fIdebhelper\ options\fR] .SH "DESCRIPTION" .IX Header "DESCRIPTION" dh_bash\-completion is a debhelper program that is responsible for installing completions for bash, usable installing the \*(L"bash-completion\*(R" package. .PP If a file named debian/package.bash\-completion exists, then different actions are performed, depending on its format. .PP It can be a proper completion snippet, and in that case it would be installed in the completion directory, and no other actions would be performed. .PP It can also be a list of files, with an optionally specified name to call the completion snippet after. The file format is as follows: .PP .Vb 2 \& my/path/to/foo\-completion # this would be installed as "foo\-completion" \& my/path/to/bar\-completion baz # this would be installed as "baz" .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fIdebhelper\fR\|(1) .PP This program is a part of bash-completion. .PP \&\fIbash\fR\|(1) .SH "AUTHOR" .IX Header "AUTHOR" David Paleino debian/extra/debhelper/dh_bash-completion0000775000000000000000000000476612564705721015760 0ustar #!/usr/bin/perl -w =head1 NAME dh_bash-completion - install bash completions for package =cut use strict; use File::Find; use Debian::Debhelper::Dh_Lib; =head1 SYNOPSIS B [S>] =head1 DESCRIPTION dh_bash-completion is a debhelper program that is responsible for installing completions for bash, usable installing the "bash-completion" package. If a file named debian/package.bash-completion exists, then different actions are performed, depending on its format. It can be a proper completion snippet, and in that case it would be installed in the completion directory, and no other actions would be performed. It can also be a list of files, with an optionally specified name to call the completion snippet after. The file format is as follows: my/path/to/foo-completion # this would be installed as "foo-completion" my/path/to/bar-completion baz # this would be installed as "baz" =cut init(); my $srcdir = '.'; $srcdir = $dh{SOURCEDIR}."/" if defined $dh{SOURCEDIR}; PKG: foreach my $package (@{$dh{DOPACKAGES}}) { next if is_udeb($package); my $tmp = tmpdir($package); my $bc_dir = "$tmp/usr/share/bash-completion/completions"; my $completions = pkgfile($package,"bash-completion"); my @install; my $name; if ($completions) { if (! -d "$bc_dir") { doit("install", "-d", "$bc_dir"); } # try parsing a list of files @install = filedoublearray($completions); foreach my $set (@install) { my @filelist; my @tmp = @$set; if (@$set > 1) { $name = pop @$set; } else { $name = basename($tmp[0]); } verbose_print "installing $tmp[0] as $name"; my @found; foreach my $glob (@$set) { @found = glob "$srcdir/$glob"; if (!compat(6)) { # Fall back to looking into debian/tmp if (!@found || !-e $found[0]) { @found = glob "debian/tmp/$glob"; } } if (!@found || !-e $found[0]) { warning "file-list parsing failed, installing as proper snippet"; doit("install", "-p", "-m644", $completions, "$bc_dir/$package"); next PKG } push @filelist, @found; } if (! compat(4)) { # check added in v5 # glob now, relative to srcdir if (!@filelist) { error("$package missing files (@$set), aborting"); } } foreach my $src (@filelist) { doit("install", "-p", "-m644", $src, "$bc_dir/$name"); } } } } =head1 SEE ALSO L This program is a part of bash-completion. L =head1 AUTHOR David Paleino =cut debian/extra/debhelper/bash_completion.pm0000664000000000000000000000020312562724351015753 0ustar #!/usr/bin/perl use warnings; use strict; use Debian::Debhelper::Dh_Lib; insert_after("dh_installman", "dh_bash-completion"); 1; debian/README.Debian0000664000000000000000000000071612562724351011244 0ustar bash-completion for Debian -------------------------- Completions are kept in /usr/share/bash-completion/completions. /etc/bash_completion.d/ is being kept for compatibility reasons; but will disappear in future. If you're a package maintainer, you're encouraged to use dh_bash-completion(1), which will take care of installing third-party completions into the appropriate directory. -- David Paleino Sun, 10 Apr 2011 15:33:19 +0200 debian/source/0000775000000000000000000000000012562726232010477 5ustar debian/source/format0000664000000000000000000000001412562724351011705 0ustar 3.0 (quilt) debian/compat0000664000000000000000000000000212562724351010375 0ustar 9