From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 487 invoked by alias); 18 Sep 2011 00:25:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 29783 Received: (qmail 11612 invoked from network); 18 Sep 2011 00:25:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, T_TO_NO_BRKTS_FREEMAIL,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at yahoo.no does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.no; s=s1024; t=1316305112; bh=ZH6rhI8/eIVTsBRg4wjU4N6GuKr0JqynlIJ/BlkhOjY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Content-Type:To:Subject:Date:MIME-Version:Content-Transfer-Encoding:From:Message-ID:User-Agent; b=tmhpX8E2w5HHPnjSYVLxtH2o11JapR/jqHkfCaxZA33k00iWEIPZZ2BveulMJZsdeO+2BvIS1X4J/BT1PJHD/VdA44YQEYBMtX0lCcXg2k9J7gtRalb3XeYBPn0nxoh+eb8F+Sg+TPKMAEy4KMO02m0QFCR7+RNx0KMFy0/UAg4= X-Yahoo-Newman-Id: 845937.66388.bm@smtp108.mail.ne1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 3KNTXhUVM1n7chxGtP96YzU.Jcb8GtXzQfI9YlpzkQq_1Iy miiqwpIbDQeRrcUbOI6kGq8aF6MFdCuX.Rh5HhYbP3Qlg7UKrKPJKuYxgv9j 0CPC1VBtTP13vJD0E12uE.c11MCZS5XIo3L.WkjILq2E_exmy6YCu1Uc2ExW WHR64tBlKL3BXXKUkynMlDM5XwVz4steURGLIaIWvkiffCOkkwdeCmDSlGs7 kZXL0csGidEu8W8FbMVSOmwicP2H65vYHa0yFSPCAA7_sSbjuxw.cSKC6eLJ fMJw.MRvhyfqCjHjoNA.ftM5v8fjHnR.9YLHp7n5u_L7ukTAe4lJg4Ivunjs ab2V2TmEYx6PTppuXXU5jl6Uf54W9LU..ssEx6K4bpUUg1CGt0gyMdqB6u0o Dc.VpOryop7mX X-Yahoo-SMTP: GVxjiN6swBBXSp72Za0CO9rW.O37AdI- Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: zsh-workers@zsh.org Subject: PATCH: _update_alternatives: add missing options in completion Date: Sun, 18 Sep 2011 02:18:30 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: =?utf-8?Q?Ole_J=C3=B8rgen_Br=C3=B8nner?= Message-ID: User-Agent: Opera Mail/11.51 (Linux) (Against 1c2ff6852911c47b1386d72e781b465f140e77eb) Even though the version in Debian stable doesn't list all these in the --help message they are supported. (see man page) Hopefully I didn't make any mistakes. First time I've messed with completion code. --- diff --git a/Completion/Debian/Command/_update-alternatives b/Completion/Debian/Command/_update-al index dd1d4fc..47cda1a 100644 --- a/Completion/Debian/Command/_update-alternatives +++ b/Completion/Debian/Command/_update-alternatives @@ -16,11 +16,21 @@ _arguments -C \ '--version' \ '--altdir:altdir:_files -/' \ '--admindir:admindir:_files -/' \ + '--log:log file:_files -/' \ + '--force' \ + '--skip-auto' \ '--install:*::alt:= ->install' \ '--remove:*::alt:= ->remove' \ + '--remove-all:name:_files -W $alterdir' \ '--auto:name:_files -W $alterdir' \ '--display:name:_files -W $alterdir' \ - '--config:name:_files -W $alterdir' && return + '--query:name:_files -W $alterdir' \ + '--list:name:_files -W $alterdir' \ + '--get-selections' \ + '--set-selections' \ + '--config:name:_files -W $alterdir' \ + '--set:name:_files -W $alterdir:path:_files -/' \ + '--all' && return while true; do case "$state" in -- Ole Jørgen Brønner