~ubuntu-branches/ubuntu/warty/bash/warty

« back to all changes in this revision

Viewing changes to dp

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2002-04-08 20:51:41 UTC
  • Revision ID: james.westby@ubuntu.com-20020408205141-p16ukpd93kg6ce7g
Tags: 2.05a-11
* Don't mishandle negative pid in `kill' builtin (closes: #133927, #137742).
* builtins(1) doesn't document `for' (closes: #118755).
* Add /usr/share/bash_completion directory to source package specific
  completion files.
* Update to bash_completion 20020408 (v1.264).
  Closes: #133109, #139375, #139675, #134713, #141134.
* Add completion to /etc/skel/.bashrc (commented out). Closes: #138921.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From doko@cs.tu-berlin.de Fri Mar 08 19:44:43 2002
 
2
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
 
3
        ["1580" "Friday" "8" "March" "2002" "10:41:37" "-0800" "Ian Macdonald" "ian@caliban.org" nil "55" "dpkg completion" "^From:" nil nil "3" nil nil nil nil nil]
 
4
        nil)
 
5
Received: from localhost ([127.0.0.1] ident=smbadmin)
 
6
        by gate.local with esmtp (Exim 3.35 #1 (Debian))
 
7
        id 16jPLy-0002cU-00
 
8
        for <doko@localhost>; Fri, 08 Mar 2002 19:44:30 +0100
 
9
X-Sieve: cmu-sieve 1.3
 
10
Received: from einhorn.in-berlin.de [192.109.42.8]
 
11
        by localhost with POP3 (fetchmail-5.9.8)
 
12
        for doko@localhost (single-drop); Fri, 08 Mar 2002 19:44:30 +0100 (MET)
 
13
Received: from mail.cs.tu-berlin.de (root@mail.cs.tu-berlin.de [130.149.17.13])
 
14
        by hirsch.in-berlin.de (8.12.1/8.12.1/Debian -2) with ESMTP id g28Ioq3g019309
 
15
        for <doko@klose.in-berlin.de>; Fri, 8 Mar 2002 19:50:52 +0100
 
16
Received: (from doko@localhost)
 
17
        by mail.cs.tu-berlin.de (8.9.3/8.9.3) id TAA19084
 
18
        for doko@klose.in-berlin.de; Fri, 8 Mar 2002 19:46:12 +0100 (MET)
 
19
Received: from cartero.cs.tu-berlin.de (postfix@cartero.cs.tu-berlin.de [130.149.17.20])
 
20
        by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id TAA18363
 
21
        for <doko@cs.tu-berlin.de>; Fri, 8 Mar 2002 19:41:41 +0100 (MET)
 
22
Received: from caliban.org (caliban.org [66.125.233.130])
 
23
        by cartero.cs.tu-berlin.de (Postfix) with ESMTP id EDDD8130BA0
 
24
        for <doko@cs.tu-berlin.de>; Fri,  8 Mar 2002 19:41:39 +0100 (MET)
 
25
Received: from jiskefet.caliban.org (hades.caliban.org [66.125.233.131])
 
26
        by caliban.org (Postfix) with ESMTP id 9C67E1DE21A
 
27
        for <doko@cs.tu-berlin.de>; Fri,  8 Mar 2002 10:41:37 -0800 (PST)
 
28
Received: by jiskefet.caliban.org (Postfix, from userid 500)
 
29
        id 522CA4C01C; Fri,  8 Mar 2002 10:41:37 -0800 (PST)
 
30
Message-ID: <20020308104137.B19547@caliban.org>
 
31
Mime-Version: 1.0
 
32
Content-Type: text/plain; charset=us-ascii
 
33
Content-Disposition: inline
 
34
User-Agent: Mutt/1.2.5.1i
 
35
X-PGP-Fingerprint: 5549 8FFB CE82 CF71 B0D7  14E0 BB98 B98B BFBA F0E8
 
36
X-Operating-System: Linux 2.4.18 i686
 
37
X-MailScanner: Found to be clean
 
38
From: Ian Macdonald <ian@caliban.org>
 
39
To: doko@cs.tu-berlin.de
 
40
Subject: dpkg completion
 
41
Date: Fri, 8 Mar 2002 10:41:37 -0800
 
42
 
 
43
Hi,
 
44
 
 
45
Please ignore the dpkg completion I just sent. My Emacs made a mess of
 
46
it.
 
47
 
 
48
Here's the correct one:
 
49
 
 
50
_dpkg()
 
51
{
 
52
        local cur prev
 
53
 
 
54
        COMPREPLY=()
 
55
        cur=${COMP_WORDS[COMP_CWORD]}
 
56
        prev=${COMP_WORDS[COMP_CWORD-1]}
 
57
 
 
58
        case "$prev" in 
 
59
        -i|--install|--unpack|-A|--record-avail)
 
60
                COMPREPLY=( $( compgen -f -X '!*.deb' -- $cur ) \
 
61
                            $( compgen -d -- $cur ) )
 
62
                return 0
 
63
                ;;
 
64
        -s|--status|-p|--print-avail|-L|--listfiles)
 
65
                COMPREPLY=( $( apt-cache pkgnames | grep ^$cur ) )
 
66
                return 0
 
67
                ;;
 
68
        *)
 
69
                ;;
 
70
        esac
 
71
 
 
72
        COMPREPLY=( $( compgen -W '-i --install --unpack -A --record-avail \
 
73
                        --configure -r --remove --purge --get-selections \
 
74
                        --set-selections --update-avail --merge-avail \
 
75
                        --clear-avail  --command-fd --forget-old-unavail -s \
 
76
                        --status -p --print-avail -L --listfiles -l --list \
 
77
                        -S --search -C --audit --print-architecture \
 
78
                        --print-gnu-build-architecture \
 
79
                        --print-installation-architecture \
 
80
                        --compare-versions --help --version --force-help -Dh \
 
81
                        --debug=help --licence --admindir= --root= --instdir= \
 
82
                        -O --selected-only -E --skip-same-version \
 
83
                        -G --refuse-downgrade -B --auto-deconfigure \
 
84
                        --no-debsig --no-act -D --debug= --status-fd \
 
85
                        --ignore-depends= --abort-after' -- $cur ) )
 
86
}
 
87
complete -F _dpkg -o filenames dpkg
 
88
 
 
89
 
 
90
Ian
 
91
-- 
 
92
Ian Macdonald               | C makes it easy for you to shoot yourself
 
93
ian@caliban.org             | in the foot.  C++ makes that harder, but
 
94
                            | when you do, it blows away your whole leg. 
 
95
                            | -- Bjarne Stroustrup 
 
96
                            | 
 
97
 
 
98