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 13948 invoked from network); 26 Jul 2022 17:00:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jul 2022 17:00:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1658854848; b=GEtj4pwTc2DcBj8P2iDvghCj9GDIjYaL8QxNCI18w2mVCIJrGf3FK4oVZ53Qko6jOTiB6tnEqE bLn91V1+9naCPemzRxuVuLE+38fpJ1FNa0NjMwLaDQ8D2c32zU+pXZeFYEfEGlvlEstMFwpLnY OaNIMGkL/NuOkbKB3cTy5m89hCIH26+uygF2LiULNS8M9VO1IIaKXDlVcj1KcWkBmLbBc1Iyz8 DpK0Ks+fZnX0YJ2xrWhsMQySPjCZy5S8TWvgkgMkK1Nsk9TL3LaMV62IOUKNKnXS5Y2MPnzvHX v+MGjo7OVrdfGNnYetz1/2pM0uRmY/GLyfJYI/nEr9HTKw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1658854848; bh=WTAtptmWNIB8Dc8Xypd0CqgSWeATuss/38ccqkbvnsk=; 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=mT0VBRQxuijRPEqNQ4Be0G6ejfZkZCi0t1LJYoYChvHedr5QeVnuLbBK/a+WEVoZ4hIxV4KSAs FuwSJaDzgZyaOUNgWdhzj2IjTitOhmFzWxqMeXy0kRu9Lw/0gprE6nOmI8aCobiTywWPRtINAy UgpFXtGU9IPoPB82txoMV3SX+NVEifTMJfJQtogu/9gqVfeoQp5FPj8xLCgl0rdpBhmqJdo49n h3olFuldmz9Bw8mXn8CLIVImqn6xs13jp3PfabVFIH6rNy/eGo4wW7U+TF9wncNyhjcl4QdhcW tpmJhXwevB0AsILlDPRniLhSjGrhk2Fg9xISZRo4Qs3wfw==; 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-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=WTAtptmWNIB8Dc8Xypd0CqgSWeATuss/38ccqkbvnsk=; b=WWYwq40OjcXbSDMpmPKBMjMJMd NB/5zyfxQiU6OmTiIs0dxJV25k9sNmS8khdxvbBQbgp8FXnETKVKuVADnfEF1WZdOQwzR5BJwSDaM GPKPQZVydvwsZ+yoiP8uOGoOm2BYPBnIfGFeEBMpIvl2X/EZnbS6goxdtkpVhJs5+2gLEG8AFwKXo UDWd6ApC1cV0YwxaRzIeXoohP3QYfzRbr5wMEDJg182T1Ueuek2brpoJS8LsuR4vAUQ8f281PIPfE dha8mxXKDfcnb9WQ6lL83osAf2N78BZVr5tqcBDxF8wy2g/HznK5U9ZBaYG7RZqQzfosrMbQjZADd PDKPY3MA==; Received: from authenticated user by zero.zsh.org with local id 1oGNvM-000852-5h; Tue, 26 Jul 2022 17:00:48 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f52.google.com) smtp.remote-ip=209.85.218.52; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f52.google.com ([209.85.218.52]:38499) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oGNv7-0007ic-E5; Tue, 26 Jul 2022 17:00:34 +0000 Received: by mail-ej1-f52.google.com with SMTP id l23so27317128ejr.5 for ; Tue, 26 Jul 2022 10:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=WTAtptmWNIB8Dc8Xypd0CqgSWeATuss/38ccqkbvnsk=; b=hiOLQ2gBD6ctfaSDMxFkK2VMf7kGP0mbU6t8voxqY/15IZn5fxttbvLpu4ll7DVrMc G58/XAcTaD5/IDwTYC/r+yEwDWkoKeD1n5kgEjihpeEKwXP3Y5EnHzPONSzvLJffpjKn LN+c/DqMcd+i/ZKDQ2Ki5qzpqnwgp3zbOfupol5PP/hhAYTytSk6w2NnD7z0QwbxO2G0 n2JhGWgv0+/2X/Iaj7gjKVzu4WEbOd8RwU9cx36EAuO8vyYSvBJCP5acb/r+sZoRENUf XShE99R82fDUPk7+gzEllyBvDtCf8QTSCt4iJu5lZqCfTvJViqM9ZXhly3fzB0ap+x4A AE/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=WTAtptmWNIB8Dc8Xypd0CqgSWeATuss/38ccqkbvnsk=; b=eL638wcuABppM5ZhnPC4fgjHPaEW+SMRaTVZRrOCy8KcOiDepsKqSsipWSvjEsXfhi zpP4uoPVGl8TP73F3DQWfTAz+mo9oweR5hbv2ZOILPYtDPs9pPOCH1C94W3LuMlMkoCJ nRipJc9ra7vY6+UXUXRKTDk0Cq9cGspV0p4tuG5mIL6kX1ZtI2CU0WgXkqvHgSXk0s1y OcmDatfRiLbYLG0RVUknz1YRoetC4pyVCIusm9am4gxPsd9B7bb99XVjhY4nloj352rO zHGnBtDAxmFLcQ6BKdHhdNFJa8khni8EJlywneIE23Y1kLQtmjpi3pVC7GVL0CnYoTId 7Ilg== X-Gm-Message-State: AJIora/vETWgQdhFFtf/9cOHjbQhJpwoedcS7faODyZWNmDRAT5Dei5O 6NvoaK0bXxXQj7gNH2oCLVqWpsb6+sRYXO4ePPYpjQ== X-Google-Smtp-Source: AGRyM1t5o8J4YWCVlc1H5bsk1dMIXAemTelifl4aw4EcuRaWaMOvkBufC7OpsvoB33GFWgBaAoCac/A+tYqcDh0jZNU= X-Received: by 2002:a17:907:3da0:b0:72b:47df:c1d7 with SMTP id he32-20020a1709073da000b0072b47dfc1d7mr14525612ejc.214.1658854832828; Tue, 26 Jul 2022 10:00:32 -0700 (PDT) MIME-Version: 1.0 References: <1174358605.42447.1658853176256@mail.virginmedia.com> In-Reply-To: <1174358605.42447.1658853176256@mail.virginmedia.com> From: Bart Schaefer Date: Tue, 26 Jul 2022 10:00:21 -0700 Message-ID: Subject: Re: [BUG] ksh_zero_subscript messes with associative arrays To: Peter Stephenson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 50428 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 Tue, Jul 26, 2022 at 9:33 AM Peter Stephenson wrote: > > > On 26/07/2022 17:18 Felipe Contreras wrote: > > > > ksh_zero_subscript shouldn't be changing the behavior of the code, correct? > > I can't see how it should be having any kind of effect on an associative array, > no Something is tickling my brain to the effect that this was left this way for bug-compatibility with some version of (perhaps pd) ksh ... not that it was ever referred to as "bug compatible", just that ksh behaved that way too. Doesn't mean we can't change it now, but it nags me.