From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18573 invoked by alias); 16 Aug 2017 19:27:49 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22834 Received: (qmail 2963 invoked by uid 1010); 16 Aug 2017 19:27:49 -0000 X-Qmail-Scanner-Diagnostics: from pepin.polanet.pl by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(193.34.52.2):SA:0(-1.9/5.0):. Processed in 3.126083 secs); 16 Aug 2017 19:27:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.1 X-Envelope-From: gotar@polanet.pl X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Date: Wed, 16 Aug 2017 20:54:20 +0200 From: Tomasz Pala To: zsh-users@zsh.org Subject: _modutils and _ip completion fixes Message-ID: <20170816185420.GA25289@polanet.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE" Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Hello, a little but irritating bug in Completion/Linux/Command/_modutils, around 110th line: - s=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|.ko.xz)(.:t:r:r) ) + s=( $modules_dir/$kver/(*~(source|build))/**/*.(o|ko|ko.gz|ko.xz)(.:t:r:r) ) Additionally, attached patch for _ip completion, allowing one to use 'ip -c' alias for ip command, as _regex_arguments stops processing on unknown argument (with '?parse failed before current word?'). best regards, -- Tomasz Pala --0OAP2g/MAC+5xKAE Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: attachment; filename="_ip.patch" --- a/Completion/Unix/Command/_ip 2017-08-16 20:32:45.641906366 +0200 +++ b/Completion/Unix/Command/_ip 2017-08-16 20:42:44.155759923 +0200 @@ -530,15 +530,30 @@ /$'[^\0]#\0'/ ) +# TODO: +# -b*atch +# -force (for batch mode) +# -l*oops +# -n*etns +# -rc, -rcvbuf _regex_words options "ip options" \ '-h*uman:output statistics with human readable values' \ '-i*ec:print human readable rates in IEC units (ie. 1K = 1024)' \ '-s*tatistics:output statistics' \ + '-d*etails:output more detailed information' \ + '-c*olor:color output' \ + '-a*ll:executes specified command over all objects' \ '-f*amily:select protocol family:$subcmd_family' \ '-4:IPv4' \ '-6:IPv6' \ + '-B:family bridge' \ + '-D:family DECnet' \ + '-I:family IPX' \ + '-M:family MPLS' \ '-0:link protocol, no networking' \ '-o*neline:output one record per line' \ + '-t*imestamp:display current time when using monitor option' \ + '-ts*hort:display current time in shorter format when using monitor option' \ '-r*esolve:use system resolver for DNS names' args+=("$reply[@]" "#") --0OAP2g/MAC+5xKAE--