Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: update some coreutils completions



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]'
   )



Messages sorted by: Reverse Date, Date, Thread, Author