Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Remove non-existing flags from _uniq
- X-seq: zsh-workers 53316
- From: julian <julian@xxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Remove non-existing flags from _uniq
- Date: Mon, 20 Jan 2025 12:55:14 +0100
- Arc-authentication-results: i=1; strato.com; arc=none; dkim=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737374121; s=strato-dkim-0002; d=strato.com; h=In-Reply-To:References:Message-ID:Subject:Cc:To:From:Date:Cc:Date: From:Subject:Sender; bh=jN84IGmd+pz5SpkHUr1qbzB24SRSSPbB1hzozGh/vZo=; b=kK3mdKeAMV0oUyj2efG3dyDjse25Fs9b/URSI92/UcdNfu3dTCVkdN+JDKWyNImp+P 866WdfuLYG88OsLUxNivauos4PSwz8tssTxS8Flct91GMrZRGv3ZZBL7KX5lXkHmxv2U 1eybHTwzPAXJjYwAM562zjuaNtsv2EED0OiJUBhn03/GQDGzK7oHlVdD0XsaHJU7uEtZ f933t4tRnBI/UUKkx1NZ4kxLiGy9IJOYUNKFJfJfpSKO7LrAgQznfaSnbAwZxeicXCli FCuk8GBVDJ/iTlDmlRI/9JyX4BZ46uc1GgPFybgEI5HAuw+RDQQzp67J/INSMVm3XprG TMdA==
- Arc-seal: i=1; a=rsa-sha256; t=1737374121; cv=none; d=strato.com; s=strato-dkim-0002; b=kc3LOlTSqSG4+JcR/E4/vRE0j44omk2kxcVOGsUoKccc4Vo6Ism1ERJQkhjcPJvFP7 MfETY2tK4QZ94zvMqSnI+dmxND7vWZyUrqKPO1Va9zWTH9d6VE4hJZaqQoPJUVzi6nXr W934ZvAzXydH8iFKCpCAGraQV5BX3cnvWbLC7MyBSioVj1mneoS2lLGHczPLHQXhH/Hs HVyZrAB1GjTXOksF9fYreH2DWtqRl/VjJ6aUkvYb+E69x9QgkDMXILRJwEQ1LOkNEGtR LxW6Bz0RufwAg1w39TKfJkGEuRlp+nj5MB3b9iTDe92dyEIZC6PnNSmMrk29OJ0ck/r8 Ipew==
- Archived-at: <https://zsh.org/workers/53316>
- In-reply-to: <CAH+w=7b5dFfcy2tEhjMgY-C7YUid9+j0NdgFu7emA2rs72eTCA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <5befe2ec-c26f-41a3-8e7b-0ab3c453bb7d@druckdev.xyz> <CAH+w=7b5dFfcy2tEhjMgY-C7YUid9+j0NdgFu7emA2rs72eTCA@mail.gmail.com>
On 2025-01-17 22:55:09 +0100, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Thu, Jan 16, 2025 at 6:58 AM Julian Prein <julian@xxxxxxxxxxxx> wrote:
> >
> > 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).
>
> Web search indicates --check-fields was available in some past version
> of Debian. A patch was submitted to GNU but never applied.
Thanks for that find, I missed that when researching. It seems as if there was
the plan to unify the interface of join, sort and uniq[^1], meaning that instead
of implementing --check-fields, uniq should rather get sort's more flexible
-k/--key flag. There were multiple unsuccessful tries, with the last one in
2019, if I'm not mistaken[^2].
> Way to difficult to get sane search results on "separator", but it is
> probably related.
I think so too. Together with -k, uniq would have also gotten
-t/--field-separator.
What does this mean for the patch I sent? I would love to see it included since
I stumble into an error for the missing flags every few months when I trust the
completion a bit too much and forgot about this again.
Thanks,
Julian
[^1]: https://lists.gnu.org/r/coreutils/2014-03/msg00004.html
[^2]: https://lists.gnu.org/r/coreutils/2019-03/msg00056.html
Messages sorted by:
Reverse Date,
Date,
Thread,
Author