From mboxrd@z Thu Jan 1 00:00:00 1970
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org
X-Spam-Level:
X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID,
DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham
autolearn_force=no version=3.4.4
Received: (qmail 19231 invoked from network); 19 Dec 2022 09:20:20 -0000
Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368)
by inbox.vuxu.org with ESMTPUTF8; 19 Dec 2022 09:20:20 -0000
ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671441620;
b=nx8xkOBTU3vEPm4SW6AiRlcgUr8+invgfW2Q0RsELjNehtZW1SOeShmU8uDBtRq3FuV0xLnuQy
BwTwrA1sPOhGpZSS6N6GlvBsECWtfBDTGm+Ya4sHVyvmTrxTXJaLXxVRh/6XfnFuPjXgozVYR0
YnD4lM1aOsNE7LLOfoMuPN3AMLeGYBA62zDdfqSXE9uAitPzOG3QrzHCXs6L1EP2BivhQpSe6q
L87NJwRDZQTa2DJFhoMxvNQh++8eNhB65pgmFmz/ZMTFflK9uOqWAqgPihlwZ1q+ZWXhzX3QyR
wyc4wV9JqKmIsB8CggTTJwqt1jsmR7KiwkdD4A5dSgSwXw==;
ARC-Authentication-Results: i=1; zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1671441620;
bh=/UANxpKsRk4PfQWR38arLNtuC7wHBaefI7ADdhZXeF4=;
h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help:
List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:
References:In-Reply-To:Message-ID:Cc:To:From:Date:DKIM-Signature:
DKIM-Signature;
b=YmjNhvwHoiIpHj1yyhpd60jWj7xQeT+bKK43ltQHZHFpKdwK+2qNGB39HjJLx7az6DYBfWFMq/
tsYuP8eSMeL3Dmlx8leuTUk4AFbDaMVyHqQHsG2mCDfauxiSBpOysiAo+DgmB5kvNh/7q7Ryp/
pERgLBqXk96e/lLdASiGDl2kM0GQ+IdOgzkm1snulTBftAIiylBe0yM8BU4yP2hXvkfyVVI0+p
Vd3WjbJW9EqK/U4aMHMy68OlFJ31BtwR2mB2Vqc/ia/NyZ8uKtls0fTwnpwnRLYP80/OIud9yM
3DgRL6SOetbfqaQ3oPm5aw5bbYWSUswKztwUCRJx2qIvxw==;
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org;
s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:
List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding:
Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:Cc:To:
From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:
Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=KqO1red73CvUJcvchXsLjgWLkpeBCoq8ue+6FcHqI7I=; b=nU6sHv8ceRhlaWuhwoeXPlSwu0
K3z3gKNZmwf7H9tO20S2TfYFwB6zSAGf099/W4Ap28MwYk/KZiqlONJYwKg9lQJjMPPjXCcn6GcF1
Fxwa4A42rO5qLWQowog4G+ids44lJZy+PkrlX4m2W+sZnm0hEUXu7Oa48v1pAO+3ksK42NNpASX9W
3bugjBf+H2TKZASs/RXLozkAfzclkYna9ViAZEcQYQDCiAwgXMbqS/OC8Vbq6TUZyJ2N89LJVVt9s
5JygdCkQfs4U/bQTSx42AWMQ/mY6tAt89oyiqUO9UJyuAKPVkFohB7dOk0hqU+gzHOGALGMdCYsPd
EqLrQdLw==;
Received: by zero.zsh.org with local
id 1p7CJm-000Nc1-3M;
Mon, 19 Dec 2022 09:20:18 +0000
Authentication-Results: zsh.org;
iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97;
dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256;
dmarc=pass header.from=ntlworld.com;
arc=none
Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:43094)
by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256)
id 1p7CJB-000NJP-DY;
Mon, 19 Dec 2022 09:19:42 +0000
Received: from [212.54.57.82] (helo=smtp3.tb.ukmail.iss.as9143.net)
by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1)
(envelope-from
)
id 1p7CJB-0005rB-4q
for zsh-workers@zsh.org; Mon, 19 Dec 2022 10:19:41 +0100
Received: from oxbe12.tb.ukmail.iss.as9143.net ([172.25.160.143])
by smtp3.tb.ukmail.iss.as9143.net with ESMTP
id 7CJAprcjGYBhJ7CJBpuXKI; Mon, 19 Dec 2022 10:19:41 +0100
X-Env-Mailfrom: p.w.stephenson@ntlworld.com
X-Env-Rcptto: zsh-workers@zsh.org
X-SourceIP: 172.25.160.143
X-CNFS-Analysis: v=2.4 cv=Vd8xfnl9 c=1 sm=1 tr=0 ts=63a02cad cx=a_exe
a=pVlFXI3Q25jgZXAaIqG4JA==:117 a=1DWFKdCB1IcA:10 a=IkcTkHD0fZMA:10
a=ZjyAdWuDOD4A:10 a=XWwW19Ip0FPLZ0wXy38A:9 a=QEXdDO2ut3YA:10
X-Authenticated-Sender: p.w.stephenson@ntlworld.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com;
s=meg.feb2017; t=1671441581;
bh=/UANxpKsRk4PfQWR38arLNtuC7wHBaefI7ADdhZXeF4=;
h=Date:From:To:Cc:In-Reply-To:References:Subject;
b=ZgQVS0snQqdxQH3+nYQLImuZrh3NMRQPO1d2rI5/RaRuYGSnQ/EVfAFyuHWV9lBvk
8RIcmPCOWpF1VgG+1HWsDktsFxoLsilo4IkY8H4zYVEw2vt4VhVCFn7kJ6sRNX4eBM
ZQhDJcbCR40So1NaUmgVinvWxHD94dC0SOF3mcvLdRzfuvNQsBtnt/9CcUtMwxq9EJ
3C6xsye2FoUxTxNE5Lp/E/FM7dEYAtQCMpKtlQhnoUWrsrXPcy2Ke9+h0I9ghnJ9tX
xKBT1mIE/blHjMTsYPM554C2tdLImVDXAwz1EA78funi1N/wg1g1JoEh8hYySuDtFj
o6qQSKJF2Vrlg==
Date: Mon, 19 Dec 2022 09:19:40 +0000 (GMT)
From: Peter Stephenson
To: Oliver Kiddle
Cc: zsh workers
Message-ID: <467769667.7535398.1671441580872@mail.virginmedia.com>
In-Reply-To: <7959-1671312802.630649@JJwt.SU5o.2T2j>
References: <527664940.183302.1671208973242@mail.virginmedia.com>
<7959-1671312802.630649@JJwt.SU5o.2T2j>
Subject: Re: zsh_error_db --- hash-based database of error messages
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Priority: 3
Importance: Normal
X-Mailer: Open-Xchange Mailer
X-Originating-IP: 147.161.224.167
X-Originating-Client: open-xchange-appsuite
X-CMAE-Envelope: MS4xfNnQ2J43ZBQFcMKGh+GZsOxI3qPNEjl8jYOenQyR3KlxKNg8szr5QxC8r0oSClTARrCGn0ug1l9NzWRh5Rl0zf87d+yM7ffFJIhqv7drBpBkasAnQWdW
MhqwWkLSP62sxQcYhFStj2xmYgYcgjg3IoflOgtgF5D4WfuCctlaaY0TvPGpUEjwPEkDQpvKuMpN79rnAHftkNn+O4pU35uzdHUrPgalnhhjiE7ppM7XiqYM
SZuOnbMfwEX8rljbRAbsuw==
X-Seq: 51243
Archived-At:
X-Loop: zsh-workers@zsh.org
Errors-To: zsh-workers-owner@zsh.org
Precedence: list
Precedence: bulk
Sender: zsh-workers-request@zsh.org
X-no-archive: yes
List-Id:
List-Help: ,
List-Subscribe: ,
List-Unsubscribe: ,
List-Post:
List-Owner:
List-Archive:
> If we want to address internationalisation, we might come to regret not
> just using the normal POSIX catgets(3) interface and catalogue files.
> What they do looks simple on the surface but there's probably hidden
> areas of complexity that we'd end up duplicating. I can see the value of
> allowing things to be done in shell code but the two are not mutually
> exclusive.
Actually, internationalization was only one possible use. The idea
was to allow for more descriptive error messages for those who wanted
them. But if that's not going anywhere this can be ditched. It was
only a proposal to allow the minimum of work within the shell internals
that seemed it might get something off the ground.
> E and a number sounds fine.
It sounds like that, and a script to keep this in order, is the way
this would be heading, if it seems worth pursuing. The script
should be able to list out the default messages, checked for
duplicates, and check for the next unassigned number. If
the number appears in a macro, as noted by Daniel, that makes
it easy. That can use ## to join strings so still doesn't
need a change to the message API.
pws