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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 13830 invoked from network); 24 Apr 2021 02:12:50 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Apr 2021 02:12:50 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619230370; b=csZcv3mEBfH7FlDlScDd2ra+4C7jLiwVUAyD0shkY+08cADGIwjz/+Z/aTc4exCSIXhTAVeMiq 6rlhwQBYsEshUWRgO/2THY/pYtgXed3wwVe4ahBcyOW9LvpGJWGdWpP4LPCOY4NQEbm9ep1htL 3LQxBBlE5D316q2KpJSuimAp+eNptNSuM0stcXV/HdIoItxTaH7i3cjCbceTKT0glL43RXwwB8 OIN8qRFR7D/1+ndXJwk59NBsy8qqw13+Te8A3CGZUit7My/ichqtJ1wiVdsashaPkS1dgwKq3q 0SZ16h2zkCIsMfeQXfzGFC1F00P/CzHfHOPXI7ASXqSOrA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619230370; bh=DlhPvHhvW0vHl48iXBSvXKe3ILlaEj5jypOQl2KHW5M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Subject:To:From:Date: References:In-Reply-To:Message-ID:MIME-Version:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=In+FLBKugpxn50U1q4xm5sG//5cvmbq+Yx12pj5wKNNyBcCV5AdB3za4apPXX5AaAHpUA8nmqI Qt7o/wuEnpG2VZP919Vu5x6Uz2KQ+PBno+USe/Le5y5Gl2CxuY9szlkjK2Hi6IXpQOKBuNqSth EhiJVAktQznlpUT8JxiUfiolj2ZOxRD9A0X0ia/vyzi0yL8YwbAe61zT+HcrY7+4Tifm+8L8Hg QCZW5Zv6sRuq+l4naoONKlZ2I1OF0fF83qVriMCiassS9nfxJ/83rIpUF+MxDZmMaRL+/qUiHO eAZK8qeYAcDpFLzgAa5DqM3QjnAIvj77axU7ctvtl1mPtw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Subject:To:From:Date:References:In-Reply-To:Message-Id: Mime-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ncPk7JsV0DJFAppIvfNmOQKjXE5NOaIqlwi+AtagyHg=; b=aVM9DBN1+yTGpnHsOHFmgEIQr8 aqeInlfJgkU1507a2EcIRJL+JGSMe9dAcS0Av5D8o2Jl4Va30vSbg83+YZmc35S1sNI89aKq3DX8y zCn6/vxE3/FMw1vaT9arcUWiHseicdSPJlpnjLxoJfJ9ODYpMwku3NTqKP05oczzGYbKn60Bbc9qh bmE5i/1pcCb02xOYpIjbf/Y5DYUEHouIw8AYfEoty40mk8rOJWoG2+51Ej2NciHFAQY6p/vGCtpuA C9WDD64gGw5Ko9BT6EXSXKA3yHykQpKLwG870UrZDu0F1hacIJtZWMXzHX20ylc1BOTwx87rOEmOm eLSjiIkw==; Received: from authenticated user by zero.zsh.org with local id 1la7mp-00003G-Nx; Sat, 24 Apr 2021 02:12:47 +0000 Authentication-Results: zsh.org; iprev=pass (out4-smtp.messagingengine.com) smtp.remote-ip=66.111.4.28; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out4-smtp.messagingengine.com ([66.111.4.28]:54409) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1la7mG-000Pmz-FD; Sat, 24 Apr 2021 02:12:14 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id BA2A55C00AA for ; Fri, 23 Apr 2021 22:12:10 -0400 (EDT) Received: from imap37 ([10.202.2.87]) by compute3.internal (MEProxy); Fri, 23 Apr 2021 22:12:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm3; bh=ncPk7JsV0DJFAppIvfNmOQKjXE 5NOaIqlwi+AtagyHg=; b=KjVLTufk81WIxzjU1g30nMwaVMtKot7gH010o3IqBq JtvIS/agEB991R2Xoc7LzM/w9EWQfFTLWXY9rLuKLHkXXuxhOkjnCuVSPIchX35d rfn7pUnj+aC/cEbRavQS1Y+ruNco6Gm/fH03W/Wsj2XVOx4gCckietkr7/TJDahM BEEQHNiMrNWe5T8x2VyTdT5mhPpLf9+f8Tqd2vuCxmjjUjSAGoDfaqv5OPzqibpV QKXV6FKccR/66AQtWRizdLzhRsaIlCdrviEcPQ9MRB0SQwDe0WqfmYRodcT/tvIQ mnNBOEqqc6qqZAypMm4bGLYhxBzBdJeGw3tNqj9u80dg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=ncPk7JsV0DJFAppIvfNmOQKjXE5NOaIqlwi+Atagy Hg=; b=QM75PuMLaaxYq5x4OMEUofcYZx7tZYdrQFyicpgibgKv1ZQoKMzYK6GQN NqIkyd099o/K0UiqF5fi/s5Bf7m7cXJAtN/oSWuK2a9/UKqIe5RgmwbNzaa9I7DC GThQ2Wi7RzvHITCWyDQ782Goajeo/BjOVFMFrH1WrP2ORY2krbr7bgORJUxZAkp5 aMUnUXJl/GNwjr5cDMMR5PBnWCQhkjWmj/fBFmSidxgKXPrXCk/3zmnEuQb5xw1N BaskdmRwgC82uZZL7kuPtc4t4xv6UKdLvrSiM92on4sbqa/PHLHN+gPALt61QVEg QH+WEiATX+QQXV2PehDeMyeyYttUw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvddufedghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtgfesth hqredtreerjeenucfhrhhomhepfdffrghnihgvlhcuufhhrghhrghffdcuoegurdhssegu rghnihgvlhdrshhhrghhrghfrdhnrghmvgeqnecuggftrfgrthhtvghrnhepfefhkeefve eileelheeiffdtkedujeelvdfhtdejtdeggedvuefffeelhefhvdfgnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepugdrshesuggrnhhivghlrd hshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 464AC6B40067; Fri, 23 Apr 2021 22:12:10 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-403-gbc3c488b23-fm-20210419.005-gbc3c488b Mime-Version: 1.0 Message-Id: <0f0a356e-2499-427f-a8f4-c485d1d64e6e@www.fastmail.com> In-Reply-To: References: <7FD930F4-37CD-402B-9A06-893818856199@dana.is> <20210411175726.hxnm33mxoska2tsm@chazelas.org> <20210411193154.zkekzvb4o6xmriwo@chazelas.org> <20210413071742.tisslgg5fdqbageg@chazelas.org> <20210422153100.GD154089@zira.vinc17.org> <20210423164525.GA2033191@zira.vinc17.org> <55222-1619218004.791735@3FXq.NU49.vlrg> Date: Sat, 24 Apr 2021 02:10:46 +0000 From: "Daniel Shahaf" To: zsh-workers@zsh.org Subject: =?UTF-8?Q?Re:_sh_emulation_POSIX_non-conformances_("inf"/"Inf"_in_arithm?= =?UTF-8?Q?etic_expressions)?= Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Seq: 48684 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: Bart Schaefer wrote on Fri, 23 Apr 2021 23:34 +00:00: > On Fri, Apr 23, 2021 at 3:47 PM Oliver Kiddle wrote: > > > > I can just about see the case for warning on typeset -i/-F inf or na= n > > but not on use. >=20 > Warning on -i/-F but not on simple scalar nor on array/hash is not > very useful because math context doesn't limit expansions to just > numerics. Disagree. The fact that =C2=ABzsh -fc 'inf=3D42; : $((inf))'=C2=BB has = a shadowing issue doesn't make warning on =C2=ABzsh -fc 'typeset -F inf=3D42; : $((i= nf))'=C2=BB "not useful". The latter code doesn't do what its author likely expected it to, so warning about it would be useful. In general, a patch needn't fix every variant of a problem in order to be committable. Bart Schaefer wrote on Thu, 22 Apr 2021 21:25 +00:00: > The former warns spuriously if the user has no intention of ever > mentioning the variable in math context (or of ever using math at all)= . What's a use-case for declaring an *integer or float* variable that doesn't get ever get mentioned in math context? Cheers, Daniel