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.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 412 invoked from network); 16 Dec 2022 03:53:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2022 03:53:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1671162820; b=F8nmGBQz2de3yGY/bTEo5v+WGAD3OKkjVmrpOrnLHNtCU3P2nvbsKtMzkPxRa70W+JXK6Xrhpi fhvmIZS5xdaCs8z6LaX0wOuPOtXOZcop/6jK1e28Hs7tOyY5Hzh4TkYBv84BElqoSS0syimqDN tma43t5myuN/Qv59qDSWZXsfQX//rYOCCLmR3EN90bRBmwb7x+Qmi0qG8BJ9hzCS+4L/19ldz/ LXzth9ixhBRrm0DQ/jUIVljwZVbuEZOTcmTZ5EOLrrokCmxn/JHCAiyiRHaJJW8yjgTWoRST8s /T+kHS/BpA1F+9RsXKbsu/aO/ldDhXS/1rV5wno226xz3g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1671162820; bh=Uz5W6TDZv7wZxg53mhoT3TJPWDW17YqKBbRyqkYB7SE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature; b=KpAo4uirkkE4FbZJJjDVuKcAJnTseyfBIa2kYTu9nUsf8kUmjShtzxf6iahvX0ewRK9Y2dcQLq iY9rvVjGGfIee1ks2GVsI6QF1MIJMAPuqD2flhzbQg9AiCVv09p5FngkG6jxWPpCG0+721vrir fPYaZD1dXTXmfHWqytHYA7Ur6TiJDwI7DqQsoPqRpQacEEeq/Y7PMp0i8ncsT5TKxPsWP3vF2m jg9WyV/3wSFSPdNvigI1/1vU7yXkylqQGecH59VWS6sP+696loLcfm2BaXuaHOhrGdrs7O7MGo ji6bhXUv+EX94Y3njX/B1kkjz6O4IFaZsfuOTr98BCofow==; 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:In-reply-to:From:References:To:Subject:MIME-version:Date: Message-id:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From :Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xFxFl2YbxhJkXv2pa0mOK6LsT0IGFX/5SSIJhcApZYg=; b=VMwNmzkAitF3RZ+d3wAxu/aGsH 48PpyBNORrHqivw6u6WM/MEzKKmKPLJps3hERHs29s/Mrj9OxMaHlA7YkJ9Ef6UhbiNkZUg9X91K1 hLdPrqVt/RAGKh8FsJ+az/VKVhUiKUt8Ttw4JBRPM38a51Ofce2s7BhDIQ3y26o6YX58KU9tTuozf ygpqz9IlVERyN0W79pby4tfUR8jZ+lVat7VHWzrVXWJRmSpxWJbHfWxLgnBsV/ROaImf1LA4t+qt5 3sczv/oVQpZxMP7fQmbWmh8UKOAXP7fsNTfS+jy2h4+xKiiB/qV0SYQZSHFU43OSLr7LQBRVplxOA XC9GD8Ag==; Received: by zero.zsh.org with local id 1p61n2-0005um-8v; Fri, 16 Dec 2022 03:53:40 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:60582) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1p61mU-0005Gd-DL; Fri, 16 Dec 2022 03:53:06 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0RMY00CS1SOPN3E0@mta01.eastlink.ca> for zsh-users@zsh.org; Thu, 15 Dec 2022 23:53:05 -0400 (AST) Received: from [192.168.0.4] ([24.207.18.108]) by Eastlink with ESMTPSA id 61mSpfdDWEN8v61mSpk2MJ; Thu, 15 Dec 2022 23:53:05 -0400 X-Authority-Analysis: v=2.4 cv=IPDESCjG c=1 sm=1 tr=0 ts=639beba1 a=xN66ZtSbq5jdJYpBp7G/jQ==:117 a=xN66ZtSbq5jdJYpBp7G/jQ==:17 a=IkcTkHD0fZMA:10 a=4zkCVLRjIN61f9kh4vcA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeeigdeiudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefkffggfgfuvfhfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeeitdejffevgfdtheeggfetkeeugeegieetuddtvddvudetteffvdevlefgueekudenucfkphepvdegrddvtdejrddukedruddtkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrudekrddutdekpdhhvghloheplgduledvrdduieekrddtrdegngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdpnhgspghrtghpthhtohepvddprhgtphhtthhopeerredprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-AUTH: rayandrews@eastlink.ca Message-id: Date: Thu, 15 Dec 2022 19:53:04 -0800 MIME-version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: Are there zsh error message explanation Content-language: en-US To: zsh-users@zsh.org References: <2182a97d-fe76-9f37-7f99-1f3b3564795a@eastlink.ca> <20221215211825.GA8411@tarpaulin.shahaf.local2> From: Ray Andrews In-reply-to: Content-type: text/plain; charset=UTF-8; format=flowed Content-transfer-encoding: 8bit X-Seq: 28549 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2022-12-15 19:28, Bart Schaefer wrote: > > We've had this discussion before and decided to stay with the error > messages that all shells with similar features have in common, even if > they may be terse. Not that there's any hope of this, but one of my bright ideas was to have every error message in the universe include an ID code, which could be looked up in some reference where they would be elaborated on: #953: improper type for array assignment ... you look up #953 in the Great Book of Errors and see: #953: zsh has detected that whereas you have declared (yes I know wrong word but ...) an array of a certain type, you are attempting to assign something to that array that is incompatible with it's type.  For example,  .... (and so on).  So whereas the messages might remain terse, voluminous information would still be easy to access. My own error messages optionally return their function and line number, it can be quite handy.