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

[PATCH] Remove non-existing flags from _uniq



Hello,

Unfortunately uniq has neither the -t/--separator nor the -W/--check-fields
flags that are currently completed by _uniq (at least not in GNU and busybox
coreutils or any other implementation I could find).

Best,
Julian

diff --git a/Completion/Unix/Command/_uniq b/Completion/Unix/Command/_uniq
index 479b3848d2d0..d2e10494a9e0 100644
--- a/Completion/Unix/Command/_uniq
+++ b/Completion/Unix/Command/_uniq
@@ -11,10 +11,8 @@ args=(
   '--group=-[show all items]::group separation [separate]:(separate prepend append both)'    '(-i --ignore-case)'{-i,--ignore-case}'[ignore differences in case when comparing]'    '(-s --skip-chars)'{-s,--skip-chars=}'[avoid comparing initial characters]:number of characters'
-  '(-t --separator)'{-t,--separator=}'[specify field delimiter]:separator'
   '(-u --unique)'{-u,--unique}'[only print unique lines]'
   '(-w --check-chars)'{-w,--check-chars=}'[specify maximum number of characters to compare]:characters' -  '(-W --check-fields)'{-W,--check-fields=}'[specify maximum number of fields to compare]:fields'    '(-z --zero-terminated)'{-z,--zero-terminated}'[delimit lines with null character, not newline]'
   '(- *)--help[display help information]'
   '(- *)--version[display version information]'





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