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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 1536 invoked from network); 20 Dec 2021 13:29:11 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2021 13:29:11 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1640006951; b=eR0L0wJ/nuQ6ftVOcnmrxFXiyqOr9TPthBUnzVagUIe7Zi7udT1sTB8a9IR++XGGYQFlE6JTg1 aCySQTCWzLhM0asW498laDc86h0//SkeVaK8ZqI3vuGytFKmB1j1JnpafZrdAzIim1L32+2rvi a9PIUIKJGV22zpLywN5o6omjDIXTl5hOBEAh/Y2fIwvXxFpgVnoVMDSvIukbz44CmwWDc5g2aJ o5/mdVaDGvavYZ5+TuKq/4p36ULraVj4CLSQ/l79zqTBriglyeHoeNlKcs3QnczwqV2Xg/9rUQ BKbcPkQEV8aml5NHyhxbLErWCeC+V/afj2sFtUzFrw+5Ww==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qk1-f178.google.com) smtp.remote-ip=209.85.222.178; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1640006951; bh=Wo/AFOBySg5XyQi7/26zS+HmcmDUfYtDDtQHxFJUB80=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=Lvd8pSY96nL++I1SFftbreA0XuAJ+xKJcrYoJu9Fln8xvcc9sabZv5qRXv/gvjFEHcUjxqd4bc 2GJmDoTiDLXXw5uHYVQZvKIxG+hoTKrnMMsDIsM7Ddo63vWlNTnzKhSoFx7LeSluhXg002gIdd x9fyx1Q1vZqHgqdkv/pTi6B7X4Ph97SaeuPNOPMlKWS/k37kKOqY7NvT2IHAC0of6xXS1ObvOn qKXTLkncXq6uRNwv2UirkeJEDbPyu5/q3m0RPKP7vA7Pj+2cXdaDxLD0DIYUyk1zeTT929jeGI 1Wo7zv7lrPze8ifMF8sC6Kb3UQqz+GFSKMtMtNHiiwoEYA==; 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:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=nMTn0jn6xk22PjC0SziN96pR81DRJiW/sBl1ULdDf+0=; b=Jhw6kUkFDyMmrr5Mf4/DIFfwaK Ey3n8NoZiHbPc0+BYHC5h5vipO/RkQsOx2c8P9+Z2zaAnVeTsrnJR/upqZxxMLx5QN7gGYiOyXAMs YJKz8jto8mcjjGhVsa5uMVtzAIy+dacn8z0QaQDohTf6osvf0a7FEtWxAjCV9+91VKqVQIrT9yY8T VznsgdWVyz85djaxxt+rjvj3k/SWICoFpn/DfneUirYOiLfmE95RuD/8XoNWyvPq/SGBK6KyMpUDJ 9Kx9Yc9DjUnVDaoE/91LABe6qdQkM+FISv/QbX0//Qx0giw5h2ASGIZMTinXn9fPDNKnR0OQJEYvd b49A33zw==; Received: from authenticated user by zero.zsh.org with local id 1mzIj0-000LsS-ST; Mon, 20 Dec 2021 13:29:10 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qk1-f178.google.com) smtp.remote-ip=209.85.222.178; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-qk1-f178.google.com ([209.85.222.178]:39720) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1mzIiE-000L74-6r; Mon, 20 Dec 2021 13:28:22 +0000 Received: by mail-qk1-f178.google.com with SMTP id b67so9277171qkg.6 for ; Mon, 20 Dec 2021 05:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=nMTn0jn6xk22PjC0SziN96pR81DRJiW/sBl1ULdDf+0=; b=KMW2qv9EMCYjBMI/9NIRNc67i+c427vTEQMsAIqkMW8tueSiGqvLVSBOw+jK9x9JZH xiTTrWay7o86ohf2kHB/777lRuhOA8JjZubvTkVj4uR2SFM0594PJc+JFJcbatpGD/kK S87JgD6BL/TVHzPRcHpn3Hnsx1ue2XrT/w+pwu+NEyXj36+AXVF9tDkJ083l6YVZ1QR+ qVKui69leUe249gbxeXwBgmWzbPMLJpCRrNa5BK9np2yUsgVGBGa5+RquuxHjPnfoOQw RjMdqvfh2Z2yTQWhz4WlcvCsza3xBGriPVPGXYcWbQdfFq9sT+LRIQik60Z+LTb8hea/ fREQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=nMTn0jn6xk22PjC0SziN96pR81DRJiW/sBl1ULdDf+0=; b=n3vubnv7KzxKm5K9L/1ttZhn/jd5KT4YLx1Cx/X/D6uLnvzD2lqn4g/hlHxyAMjCI3 SI8X9KPRELssXgtZegGsPihyY19YAVd1nwxSsh+5S5rZw4o2B5KXWvS341EM2jq7RNJs ta0UwdwpYWtI6CJ/dvu9o5u+5inAfMaeV+7Idb91abSPMW8WwNid12S/RidinPSatXsj 1gzTcG3JTihImOaWZVlKK9rTASHKuNO4fX6Kq4BBIeMpvIczIh9vUKPeS92Fz/JWJqCJ xJuvP0SKuLMazbkr7TGFDGcVi93Dy/wj4jbHXkpBBA8n6BLzlPivbw8hYCB5mOZcFIYz 9jKw== X-Gm-Message-State: AOAM533NAdxhX+oSeCL3fMIBzxrJPGZZc+kaqG6i4TUsyegq4ZUH4gut edzkUqB7G5PVXJ80HOLHY0PiuVG0vcRqU2QtS/Q= X-Google-Smtp-Source: ABdhPJwF4ESd34fA6OnDII8Gj+R6U/ylNyx9QgFW3ArYQSS3QGjkC5IJ+3jG1l7xftVhSOELGJ1Hyzj8kgAwu45b26s= X-Received: by 2002:a37:9ec7:: with SMTP id h190mr9225182qke.700.1640006900890; Mon, 20 Dec 2021 05:28:20 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Mon, 20 Dec 2021 14:28:09 +0100 Message-ID: Subject: Re: Possible bug in 5.8 To: Simon Chatterjee Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 27424 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 Mon, Dec 20, 2021 at 2:18 PM Simon Chatterjee wrote: > > Zsh 5.8 seems to have a problem with the variable =E2=80=98i=E2=80=99, in= a =E2=80=98for =E2=80=A6 in=E2=80=99 > loop, where an item being iterated over starts with a =E2=80=98/=E2=80=98= : > > % zsh --version > zsh 5.8 (x86_64-pc-linux-gnu) > % for p in /; do echo $p; done > / > % for i in /; do echo $i; done > zsh: bad math expression: operand expected at `/=E2=80=98 Works fine for me: % docker run --rm zshusers/zsh:5.8 zsh -c 'for i in /; do echo $i; done' / Try reproducing this from `zsh -f`. If you cannot, run `typeset -p i` in your shell. You'll probably see that it's defined. Since `zsh -f` doesn't have this parameter, it must be defined in rc files. Roman.