Your message dated Sun, 31 May 2009 12:22:56 +1000
with message-id <[email protected]>
and subject line RE: dlocate: support for bash-completion
has caused the Debian Bug report #223718,
regarding dlocate: support for bash-completion
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
223718: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=223718
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dlocate
Version: 0.5-0.1
Severity: wishlist
Tags: patch

I often use dlocate, and would find it quite handy to have some
bash-completion support for it. Somehow, I managed to write a thing
which actually seems working.
Here it is, ready to be placed in /etc/bash_completion.d/

-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux desktop 2.4.22-1-686 #6 Sat Oct 4 14:09:08 EST 2003 i686
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8

Versions of packages dlocate depends on:
ii  dpkg                          1.10.18    Package maintenance system for Deb
ii  grep-dctrl                    1.102      Grep Debian package information
ii  perl                          5.8.2-2    Larry Wall's Practical Extraction 

-- no debconf information

# Debian GNU dlocate(1) completion
#
have dlocate && {
_dlocate()
{
        local cur prev

        COMPREPLY=()
        cur=${COMP_WORDS[COMP_CWORD]}
        prev=${COMP_WORDS[COMP_CWORD-1]}

        case "$prev" in
        -S)
                _filedir
                return 0
                ;;
        -@(L|l|s|ls|du|conf|lsconf|md5sum|md5check|man))
                COMPREPLY=( $( _comp-dpkg-installed-packages $cur ) )
                return 0
                ;;
        *)
                COMPREPLY=( $( compgen -W '-h -H -V -S -L -l -s -ls -du \
                        -conf -lsconf -md5sum -md5check -man --help \
                        --version' -- $cur ) )
                return 0
                ;;
        esac
        
        # notreached
        return 0
}
complete -F _dlocate $filenames dlocate
}

--- End Message ---
--- Begin Message ---
fixed in latest version dlocate 

craig

-- 
craig sanders <[email protected]>


--- End Message ---

Reply via email to