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

Re: [PATCH] Show patchlevel in version string



On 3/31/22 03:55, Axel Beckert wrote:

> On Fri, Sep 03, 2021 at 01:38:03PM -0400, Wesley Schwengle wrote:
>> Debian for example uses `debian/5.8-6+b2' as a patch level.
>
> JFTR: That's not completely correct. Only "5.8-6" is the patch level.
> "+b2" is the build counter for binary packages rebuilt from the same
> source code against usually newer build-dependencies. (And "debian/"
> is just the tag prefix in git, but there are never build counts like
> "+b2" present in git tags in Debian.)

You kinda do :) I understand what you are saying, but it is exposed as
the patch level.

$ cat /etc/debian_version
trixie/sid

$ echo $ZSH_PATCHLEVEL
debian/5.9-4+b4

Anyways the idea is to show this outside of $ZSH_PATCHLEVEL when running
zsh --version, as I think it might be handy for those who want it.

Cheers,
Wesley

--
Wesley Schwengle
E: wesley@xxxxxxxxx





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