Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion for aplay from alsa-utils
- X-seq: zsh-workers 44891
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: Completion for aplay from alsa-utils
- Date: Mon, 04 Nov 2019 11:38:37 +0100
- Authentication-results: amavisd4.gkg.net (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.co.uk
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1572863914; bh=PTMGhGB5BHHz1GLFt42sMu869cqWUUP17QMAxTc1UiM=; h=From:References:To:Subject:Date:From:Subject; b=ewO2Z2gWeNm9K5ovFwYGDT1Va/XzXnL9zNjFEoLv/vR7d/Io1YlZGVRS5xFrhXk9rkqTTeHC4CzUFV/T4776k3j+TgsP85JHkpk5I3luAz7jTS/cCKHdRlb1Oe12HRgeYC4wzMe4bVJ2uCnAq+pwSqAd3SVAM6fZ5PiM8p4hPaEUNY3Qnk6bUnftDkFM0wn9FORebqw0K3jyDsx+3EgEf/5VcapxUUlntxdtwk/BFO9TVL0cfH9cigf6FELpDFsFS/7a3Z0bld1QjxPYu2F2x2F8kdteI/is/7orIRdK7pilo9BU5l8HrubseM0tbavL6PqBPSeO2m1Ws8TLXAm0lA==
- In-reply-to: <EE6F9F27-FFCB-4D88-91E7-C0EE5CF33C4D@dana.is>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVArm7cgptJrBaHhe0R=J5M9m8MeiCqLGESN3nu6TdW8bQ@mail.gmail.com> <EE6F9F27-FFCB-4D88-91E7-C0EE5CF33C4D@dana.is>
dana wrote:
> On 2 Nov 2019, at 16:13, Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> > the submitted completion is in file _alsa-utils
>
> Feels like maybe it should just be called _aplay, unless you think there would
> be so much shared code between future alsa-utils completion functions that
> they all need to live together in one (not sure but doesn't seem like it)
I don't agree on this point.
There often is shared code between utilities that come from the same
source. As you even point out, arecord takes essentially the same set of
options. And _alsa-utils makes it clearer where aplay comes from if it
isn't clear. We've also got plenty of existing functions where naming
matches to package or source rather than the command. It can also make
it easier to handle name clashes if a different aplay turns up.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author