From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 762 invoked by alias); 5 Jan 2018 16:16:11 -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: List-Unsubscribe: X-Seq: 42229 Received: (qmail 18741 invoked by uid 1010); 5 Jan 2018 16:16:11 -0000 X-Qmail-Scanner-Diagnostics: from park01.gkg.net 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(205.235.26.22):SA:0(-1.4/5.0):. Processed in 2.659685 secs); 05 Jan 2018 16:16:11 -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.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: SRS0=bkm2=EA=yahoo.co.uk=okiddle@bounces.park01.gkg.net X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | X-Virus-Scanned: by amavisd-new at gkg.net Authentication-Results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1515168954; bh=qjD8aJN4PdpeLogWeCqVwBvaqdDTMprXn0IWO58k1/8=; h=From:To:Subject:Date:From:Subject; b=jZ6wH/ft8H7mdXGUhCjAWupWi3bJIjI5OkvDkqmtIUfCUeFx59mD+AgxbYLtKo9zBCAJuMst69OM/XVd5NuTErDiDDvZ/XccabcrWNUmeqmDzCh/bKPJuX22wVxUSxLWQJlmyKcx6boBpwA9uIciRycO42fZ+Knw3SXOXgwwLTStWE6f7nKUgaEb4cZ2M09NZpIWQJB6twN5CKynfX1G+d5pr4WQ8lASnbZNrU00PPV+r+hq/GuId5vfN1hWnWdztsaHTNPA2tLJXkIh1p9Y7+JmIzKkLY1gGOx81txJULweZveq5r4BkdnfRQBjzQ/kI1OyR71INNPfBVrviIpezw== X-YMail-OSG: gDSchqUVM1mJRqMF0ON8NT419lRmTHIeHpTIGjP9eX9pAUU7v3p8P85oVfIiPS6 Vfr.A_X0t.ohfnE5XFNKfDLhgD5m39j_YWxFFhy_tdPJ6If1V8guaPQt9oGI_yUDexw2fxtuRyx9 Xfetz7EF76EuTFKPQT3S7rglj2YAN5vRs.LV9eKHwunbP3kgzzXRgF9DPFS5ti06n5C.h8IJSfFP GW_VY8vAMNzUHBWYE69NiO_I9126xL3tQVzLeiBNanhiuiNP_MgGTe4C7Uas1bFYunUwp.G926hp GBXiFAu6EfJvd9niER0JHkepX3qZdXgJIECprUez9iJzaka9NeB_hm_Porn.910ODdPsijpyInsZ BFD3.MImwaAcTNCqnnhkV_1Ngy3pBBuzwg2SbHpHr3V8RCZbJcMErGy_vH2NDcA7ZfzqvqCNPwma qBxuDLSg5OrVk9HDXFeXwi6SqpVdoSEqFS5ljFNtCkATMNSBCgXiEQdGd2TsnA7vhSJ0S From: Oliver Kiddle To: Zsh workers Subject: PATCH: update some coreutils completions MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <25173.1515168351.1@thecus.kiddle.eu> Date: Fri, 05 Jan 2018 17:05:51 +0100 Message-ID: <25174.1515168351@thecus.kiddle.eu> This updates some completions for coreutils 8.29 (4.2.0 in the case of gawk). Nothing especially substantial: one or two new options and a couple of typos corrected. Oliver diff --git a/Completion/Unix/Command/_awk b/Completion/Unix/Command/_awk index 9050c2f7d..4063743e5 100644 --- a/Completion/Unix/Command/_awk +++ b/Completion/Unix/Command/_awk @@ -53,6 +53,7 @@ case $variant in '*'{-l+,--load}'[load dynamic extension]:extension:->extension' {-M,--bignum}'[select arbitrary-precision arithmetic on numbers]' {-o-,--pretty-print=-}'[pretty-print awk program]::output file:_files' + '(-s --no-optimize)'{-s,--no-optimize}'[disable default optimizations upon the internal program representation]' {-S,--sandbox}'[disable system(), redirections and dynamic extensions]' ) ;; diff --git a/Completion/Unix/Command/_df b/Completion/Unix/Command/_df index 4567b64b0..2586f4358 100644 --- a/Completion/Unix/Command/_df +++ b/Completion/Unix/Command/_df @@ -8,12 +8,15 @@ if _pick_variant gnu=GNU unix --version; then '--total[produce a grand total]' '(-T --print-type)'{-T,--print-type}'[print file system type]' '(-a --all)'{-a,--all}'[include dummy file systems]' + '--direct[show statistics for a file instead of mount point]' '(-l --local)'{-l,--local}'[limit listing to local file systems]' '*'{-t+,--type=}'[limit listing to file systems of specified type]:file system type:_file_systems' '*'{-x+,--exclude-type=}'[exclude file systems of specified type]:file system type:_file_systems' '(--no-sync)--sync[invoke sync before getting usage info]' '(--sync)--no-sync[do not invoke sync before getting usage info (default)]' - '-v[(ignored)]' + '--output=-[output all or specified fields]::field:_values -s , "field" + source fstype itotal iused iavail ipcent size used avail pcent file target' + '!-v' '(- : *)--help[display help and exit]' '(- : *)--version[output version information and exit]' '*:files:_umountable' diff --git a/Completion/Unix/Command/_ls b/Completion/Unix/Command/_ls index d10c4f9bf..ea96de6ff 100644 --- a/Completion/Unix/Command/_ls +++ b/Completion/Unix/Command/_ls @@ -177,7 +177,7 @@ else '(-f)--full-time[list both full date and full time]' '(--block-size --human-readable -h --si --kilobytes -k)'{--kilobytes,-k}'[use block size of 1k]' - '(--human-readable -h --si --kilobytes -k)--block-size=[specify block size]:block size (bytes):(1024)' + '(--human-readable -h --si --kilobytes -k)--block-size=[specify block size]:block size (bytes):(K M G T P E Z Y KB MB TB PB EB ZB YB)' '(--numeric-uid-gid -n)'{--numeric-uid-gid,-n}'[numeric uid, gid]' '(--tabsize -T)'{--tabsize=,-T+}'[specify tab size]:tab size' diff --git a/Completion/Unix/Command/_od b/Completion/Unix/Command/_od index db75b3f96..aba400660 100644 --- a/Completion/Unix/Command/_od +++ b/Completion/Unix/Command/_od @@ -27,7 +27,7 @@ if _pick_variant gnu=GNU unix --version; then args+=( '--traditional' '--endian=[swap input bytes]:endianess:(big little)' - {-S+,--strings=-}'[output strings of at least specfied bytes long]:length' + {-S+,--strings=-}'[output strings of at least specified bytes long]:length' {-w-,--width=-}'[output specified bytes per line]:bytes' '(- : *)--help[display help and exit]' '(- : *)--version[output version information and exit]' diff --git a/Completion/Unix/Command/_tail b/Completion/Unix/Command/_tail index b7001389b..599503ab5 100644 --- a/Completion/Unix/Command/_tail +++ b/Completion/Unix/Command/_tail @@ -11,7 +11,7 @@ if _pick_variant gnu=GNU unix --version; then '(-F --follow)-f[same as --follow=descriptor]' '(-f --follow --retry)-F[same as --follow=name --retry]' '--max-unchanged-stats=[with --follow=name, check file rename after the specified number of iterations]:number of iterations' - '(-s --sleep-interval)'{-s+,--sleep-interval=}'[with -f, sleep the specfied seconds between iterations]:seconds' + '(-s --sleep-interval)'{-s+,--sleep-interval=}'[with -f, sleep the specified seconds between iterations]:seconds' '--pid=[with -f, terminate after the specified process dies]:pid:_pids' '(-q --quiet --silent -v --verbose)'{-q,--quiet,--silent}'[never output headers giving file names]' '(-q --quiet --silent -v --verbose)'{-v,--verbose}'[always output headers giving file names]' diff --git a/Completion/Unix/Command/_timeout b/Completion/Unix/Command/_timeout index 0e6d057b3..5c27bee47 100644 --- a/Completion/Unix/Command/_timeout +++ b/Completion/Unix/Command/_timeout @@ -5,6 +5,7 @@ local args if [[ $service = g* || $OSTYPE != *bsd* ]]; then # GNU coreutils as opposed to Free/NetBSD implementation args=( + '(-v --verbose)'{-v,--verbose}'[indicate when signal is sent upon timeout]' '(- *)--help[display usage information]' '(- *)--version[display version information]' )