Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Remove non-existing flags from _uniq
- X-seq: zsh-workers 53309
- From: Julian Prein <julian@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Remove non-existing flags from _uniq
- Date: Thu, 16 Jan 2025 15:57:52 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737039472; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=/smTdFTe9YEuNm6mRgGcp+XwZy4f6E73UqTrQQrz2tg=; b=DGrGXhkjZVREij6J3gHjSDrru219TLR7A+mIimrJKV6viHUnk4bbPrKwnyR4j8kk0P vQK1rGEsWfhTttqhLu7C8BMrlJJs6+5tMOEfmongwdLfykMJdpws8DJosLKQtqauWSlQ UMEa0lFPk7+lqBIdTbuWUQCpLsI9I8k6gbpmg5pLs+z//UmIGA+E3eqSUdRsa6/X63ez biRqiVBS9SbSJ7kZSRr6XAVUDZNfb7H3w6PG26BUl5lQzNXr6xLhTJicJH30ghZFhNju 3bDrYkN/hxMmOaVHvHR4iEOWpdDo+XN5VVSyZquu6gN1fS/DhgzdItD7LaciV52xWHtp lFuQ==
- Arc-seal: i=1; a=rsa-sha256; t=1737039472; cv=none; d=strato.com; s=strato-dkim-0002; b=G8soG3EtKY8/ebJTT+zfs1rPuMEd08BXR03or6MEERqblZm/ZHglV3fwt4HSmTxMd2 D9inwo8C1uXtUeWUZ4XQnc3KJ1Qjh5bXe0xDBtCN2RPLQ+DNgSx9kGY1kYjtCmKqzS+1 WFbmCllA5zXKA1C1mUek9V30Ej5m9md45UYHtBZPZyA466ERvvNQbHUHSt2oKlr+WuQB JADn9E57fZQq6gPzX69ZO2h/J+TGf+JRJ+ufGH46yn4HzMLcGBDY3lkw6l0tEm0hMv0z uUF95RDjrMu58aZjMuVe/d785UqY2QZYNg4JI+jY+ZY/JBLSMro/G7dh/6jGXxq4muGY YCdA==
- Archived-at: <https://zsh.org/workers/53309>
- List-id: <zsh-workers.zsh.org>
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