about summary refs log tree commit diff
path: root/Completion/Unix/Command/_sort
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-08-19 19:06:37 +0200
committerOliver Kiddle <opk@zsh.org>2016-08-19 19:06:37 +0200
commit4200466217cb5873061847b069edac959e8027e0 (patch)
tree13839c0ce9b1d00ace07050e58c1e5162bd14b26 /Completion/Unix/Command/_sort
parent580698bc7136454941dd6bbc2ca70f240fabc6b7 (diff)
downloadzsh-4200466217cb5873061847b069edac959e8027e0.tar.gz
zsh-4200466217cb5873061847b069edac959e8027e0.tar.xz
zsh-4200466217cb5873061847b069edac959e8027e0.zip
39071: update completion functions for changes in Solaris 11.3
Diffstat (limited to 'Completion/Unix/Command/_sort')
-rw-r--r--Completion/Unix/Command/_sort12
1 files changed, 8 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_sort b/Completion/Unix/Command/_sort
index a35de171a..91e9132ad 100644
--- a/Completion/Unix/Command/_sort
+++ b/Completion/Unix/Command/_sort
@@ -4,8 +4,8 @@ local args variant
 local ordering='(-d --dictionary-order -g --general-numeric-sort -M --month-sort -h --human-numeric-sort -n --numeric-sort --sort -V --version-sort --help --version)'
 
 args=(
-  '(-c --check -C)-c[check whether input is sorted; do not sort]'
-  '(-m --merge)'{-m,--merge}'[merge already sorted files; do not sort]'
+  "(-c --check -C)-c[check whether input is sorted; don't sort]"
+  '(-m --merge)'{-m,--merge}"[merge already sorted files; don't sort]"
   '(-o --output)'{-o+,--output=}'[write result to file instead of standard output]:output file:_files'
   \*{-T+,--temporary-directory=}'[specify directory for temporary files]:directory:_directories'
   '(-u --unique)'{-u,--unique}'[with -c, check for strict ordering; without -c, output only the first of an equal run]'
@@ -26,15 +26,19 @@ case $variant in
       '(-s --stable)'{-s,--stable}'[preserve original order of lines with the same key]'
     )
   ;|
+  openbsd*|freebsd*|gnu|solaris2.<11->)
+    args+=(
+      "(-c --check -C)-C[check whether input is sorted silently; don't sort]"
+    )
+  ;|
   openbsd*|freebsd*|gnu)
     args+=(
-      '(-c --check -C)-C[check whether input is sorted; do not sort]'
       '(-z --zero-terminated)'{-z,--zero-terminated}'[end lines with 0 byte, not newline]'
     )
   ;|
   freebsd*|gnu)
     args+=(
-      '(-c --check -C)--check=-[check whether input is sorted; do not sort]::bad line handling:(diagnose-first silent quiet)'
+      "(-c --check -C)--check=-[check whether input is sorted; don't sort]::bad line handling:(diagnose-first silent quiet)"
       "$ordering"{-g,--general-numeric-sort}'[compare according to general numeric value]'
       "$ordering"{-M,--month-sort}"[compare (unknown) < 'JAN' < ... < 'DEC']"
       "$ordering"{-h,--human-numeric-sort}'[compare human readable numbers (e.g., 2K 1G)]'