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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23914 invoked from network); 24 Apr 2021 03:43:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Apr 2021 03:43:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619235794; b=Q3/m260ULyr/ETXakhRC1ucKdg4XFktt/REZdy2BmqNwJXWhEX6wix2Qw/EYzdwRNHxnU3/+xs anH0qeBhpEBtBxvhiFvUwyGaFGJMwNgSFCnn3JGY1HpxesON5yj4feGNPFZCDYnCP2Hl1zG7jR g4U7DQuX4G5hX8lmX7sgoc6tCeON/xKkCdePVLbAQL4vU0b3CbVTNm1RfXpKDVHhAdDe78QP7P PhLrL3CV5Zc2ZMYQWugdiHZdb5XZ/f/5lSk7l8M3hYJABYuMTKGpK79Uni1ym6eIWLTcYIHjDp 6014rSdOvl1QtjNlqSdFWMpnLbl0d3kClvG7MKyCgaTVEg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619235794; bh=VIKyCWmcXnpPLreavxX9/6ARNB84WjTIpmlJKeW31hk=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=1hMT/YNlAMABwUQNQX3u2az8Ar4fzZ8bWjWPt+ofnyMKUaIhjA08pCNeL5zJeKzUqdiP1VUXYy TFPQEaE9HzJOiaeY1PYqdSBF+oIYUqliT73Cqjqmqd3oQsX6X/6oC53EN42ndyBHy5rcSm3CsZ gAr29g/EG7MECvNvitJ7oS1bTr+yNY11RWb3xRxK1Jd0gioAZZcJp9S1B17AkkGHSbPMrX7QoZ +GNPg1vFpk8o0Dse8qN1x5TB6gMCaDjxDk5ULi2/tSD1JT1S9XfBzdD4eHn7ZEpEChyxXzn0hs zzVakixTbu8InTVVyla7XkyYj5bI9jYX3x2ceuP0RPeUMQ==; 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-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=VIKyCWmcXnpPLreavxX9/6ARNB84WjTIpmlJKeW31hk=; b=pqGyERZCnx58rS0zvU/ZkDM8uG 6VhoYUY9eud6GqELg40vrd1Aub72kzt4JFv1VIY9oXuLIX7VSssgpAdSWCwJdGY8RE0Xn9E741Wp2 NGENwjIqQQTAj7oXMYQ6tLUN+1LCGYGmOT0C26Zv27rwvaV7/xtEgdPFdqD2RS1h8P+Mx8RTIDSsp Or4Nc6gI1c/1HYjGEcP1uKswd+bQN1CDGIScU7MxudUtUswi90bfpE+ukavsVnS+gIKAb2VdIE5t8 IR2AiYHKmT1udtErhBMSpfdKk355yOUQaCgtPfsg2Dqn4XC1bH22X8YlTMHv5Kgm3DKYvKWKI2vUS 0D54MNNg==; Received: from authenticated user by zero.zsh.org with local id 1la9CG-0003D8-EJ; Sat, 24 Apr 2021 03:43:08 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f51.google.com) smtp.remote-ip=209.85.210.51; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f51.google.com ([209.85.210.51]:41866) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1la9Bz-0002zx-ES; Sat, 24 Apr 2021 03:42:52 +0000 Received: by mail-ot1-f51.google.com with SMTP id v19-20020a0568300913b029028423b78c2dso38430789ott.8 for ; Fri, 23 Apr 2021 20:42:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VIKyCWmcXnpPLreavxX9/6ARNB84WjTIpmlJKeW31hk=; b=Gfnp/+8IxnrD2qNOwi8k+nsQxIs9aluPSpzs92Xey/QfO9/LelViT1tScyd4FJO6K7 BPvlV9ZPlUGXl74vCVYNiSaKGvvuWkC2fow+H5ca4Zzd5ZdKnpm4QcL2S9wBeVXgfbtW lGbNMgB4/KPH5n3vf9/lX8Uvc78xFF8vpC2F0thwQoQpnX3ibkyVLqdIcIoy5BGIsiFJ NAgYZtuywVmgDUuHXM17906H4MtKJV3gfOwr1PuHM6jArM90rExzIxHmFOU4SI8vKRaa cy64Hbqm9g/Wflc3aegt3gptopds9ZNkdA168qCfzmh4VDOKXZdwo3k4N3ya7Egzm9zS o1uA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VIKyCWmcXnpPLreavxX9/6ARNB84WjTIpmlJKeW31hk=; b=AVifOH/i1YraLMm2aEYsbS/kGwXn3FH9530UCZ0XlHWCuLNiHYq1QNXW73Pdu98y9z aicP+6J5ljN8xld2+7tV8/QBvaj/Qs1j7dzdxa7cLiVBlJVz09to+jdIcmhEXNVooYIl s6Uu2WZIL7lnuZnb1H+44WUZTGKzHBDbqWWkdgFFYn+gYSeQ5Q5WDBAMvSmWx1Oe+dfs UTGjuNt9jjtOqCqMcAT5eFy5g4em5yINaQZFdZJ7nbn4IyY01RjtFbzBc+Qs21Y4QHdC zLKYCwueg946rdXakOCSReMho4ZAL6/QAVCQu47m8lafnnBOrusvgyokeruXnB0Nj1B4 6l3Q== X-Gm-Message-State: AOAM530sbmDQYp/i107PiK0lMSbDG234NgfAxGp5jnRZ2DER3QwdZcCq SJyDD4XXK2R/xmv+6sRW1m8lkf/oKEKhTrWGA/nJmVqnVkY= X-Google-Smtp-Source: ABdhPJxCoHG/PU1GxMhvhRVe7AlzdDF0KKhJnETTl2q/shu0IvJo3mSSMvhtGvJahozyn7D+FRQfhqqcj3C3KaIaOtY= X-Received: by 2002:a9d:a4e:: with SMTP id 72mr5729036otg.229.1619235770093; Fri, 23 Apr 2021 20:42:50 -0700 (PDT) MIME-Version: 1.0 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> <0f0a356e-2499-427f-a8f4-c485d1d64e6e@www.fastmail.com> In-Reply-To: <0f0a356e-2499-427f-a8f4-c485d1d64e6e@www.fastmail.com> From: Bart Schaefer Date: Fri, 23 Apr 2021 20:42:39 -0700 Message-ID: Subject: Re: sh emulation POSIX non-conformances ("inf"/"Inf" in arithmetic expressions) To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48685 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: On Fri, Apr 23, 2021 at 7:13 PM Daniel Shahaf wrote: > > Bart Schaefer wrote on Fri, 23 Apr 2021 23:34 +00:00: > > Warning on -i/-F but not on simple scalar nor on array/hash is not > > very useful > > Disagree. There's room for that. > 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? I was (not clearly) using "spuriously" with an assumption that the warning would apply to non-numeric type[def]s as well.