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 11827 invoked from network); 13 Jun 2021 22:33:59 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Jun 2021 22:33:59 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1623623639; b=uNCAADuaSzt8lziiquYx6MsM3MM0cbm9hVoCCdlc9TuBuUwnkyqeXvFRj3q1j5Di30k9Id6RIu aR4KhR84RfSHOWpCQi3vYQu8g/KdrYOKEL9HNGQJU7E6Wk22C/BkAXZK4WsQ/nHq3wQDvXXcrB KvSKdnCLYt9mFmEfn8zOnl4owTSUxuWO6yd/dqzuW1e3lvYgRrytqJcsRaxsoFvw9tUkCYNd5I 8mvj2N06PTpGtGoBZAf/w3ZZIyNlY8sTR95UKooTRzLpV+/1F88XTLfziKa7H3tLCnfJGUUv89 qGtisU32qma7Otf49klXlTOSzo/sv7k+Y+Hykm5vsCbR+w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f43.google.com) smtp.remote-ip=209.85.210.43; 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=1623623639; bh=Hw0XNUAK6buKsKvF7Yikbs8V35AsW7y17dbuCDhRj7Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=KrNoQraeR73JlBYmQ8l48PzINeTP3rCN7vciEuyZ2wyMT5YMBw5MOzhOUA7/gh7nWEmolDmyjB RrffmAyUGGZllii0JVXqprszlpwxjPip+90TxSZA9Ohnrp4jHvu+P1hR5xzUQ7FkllKp5Yx/ou Ukv43evphS3/n8MRM2e78IIot2fXdsY1fOwNoiP7RY2gPS+5xpDBcYcF2eAX08p4R7PWWqvx/c ceXUVy36Wu9aDHrlT1GND5l86H1av+nuUNfKxIPwLUd8zbvDTU7STpT2o4B1Ci6DKiQ9hrjc7h Fke7u+F7ZYUnvEynVg8JJpXn20wm4bAXvxXEevDoOgFlww==; 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:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=W8DJJCQA2bbzQL7DZgsobJMiaWa5ZRRayKZJDckMRzc=; b=gk6F2BNWyXvGAHoZ4TvmXyBN75 b4Kug1ddn44AEljhLZhyqZzR8n4KnyhTsGZhOF57/RlvcGLQTJst3SzpXxAREHFc05Clb0HYc9v/A 8+A24lpGP8CN68DnI6MwvxDQMxMv0DsnGU66zd2FEy+Cx+0az1rvgBN1FFEYKaJuWvUJOGFcPjwwO HKbC+lFr1lGcfL05KkGFGoqfJF6VJcoCo7zDJ9XAJO76uyh/W1sSf/bL6XeFdeFfV6YffUhlbtMlm onXqgJ8q5QIji0J2VDouO53D46cOu99ns3/Txj2E8CFrmHKJ65YpvhOBscU5zei8KyQfy1t+7jr2G g02nhvhA==; Received: from authenticated user by zero.zsh.org with local id 1lsYg2-000Bm3-Do; Sun, 13 Jun 2021 22:33:58 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f43.google.com) smtp.remote-ip=209.85.210.43; 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-f43.google.com ([209.85.210.43]:38624) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lsYfn-000BTb-00; Sun, 13 Jun 2021 22:33:43 +0000 Received: by mail-ot1-f43.google.com with SMTP id j11-20020a9d738b0000b02903ea3c02ded8so9066921otk.5 for ; Sun, 13 Jun 2021 15:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=W8DJJCQA2bbzQL7DZgsobJMiaWa5ZRRayKZJDckMRzc=; b=njnrlVSXYM0RofMeEWtBVLBIRZRvRjxrcK8LKa3RoQMQIEKiA73rLVpOZXSif6qrMb xPkFsDg19J0W34PfVfpWiVKGHD4b830G4seeHQoffbfTATg6WCUx5RCC/KUDdgd6Eg5D 8VmyNhh+wTXYedpXbxe2MrqA8fsmnhCawp6hZLwwAxjMpEC7ihG9bLtSEdGj6MxkHzs4 Fma9bizewvctfzVGbRuTlV1/4LRea+9M10vdmvAAfuceiv8NMLApjN6GdGkMvNTXzFMx aYmlF+VLkfxMTwdXK25yg+OGEhma6vydVL24c5vX7WQESN8a4HbwVQziEGvtyoP6SAXl R0dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=W8DJJCQA2bbzQL7DZgsobJMiaWa5ZRRayKZJDckMRzc=; b=KgvPWzdZuo/E2Dv3NhYJcMHMLWzDOD1ANF6jJviqPcAAMMdZ1nuYC2LyehWCAWt3AW Rm6JtiNEPtPBYXRRZk2q1Oz+p2NrJhdDLxIwqQN94+GS234gtwjE5YpkpMtSmRcWEmTJ tpcKJ/GvkQ81DU3SbeBKInnIwpDbhEPDn9IB+yVVP0o+lRHNJIiuZFHyVKMe0UPptbbP ufOoAlXzi5rBCsdmlBtoIoAXnR6BE/E8ymG3dq5fg/IdZoTNcDfFDX9Q2MWRvH0SnJah js8q01RbZFjeds/9S5KUDrmq09EononKW1FCmRXptQmFtPeDiF/CH1trAZ81UP5SReFd zNpQ== X-Gm-Message-State: AOAM5306ea+RHryx7XCyyigqoBjkSvPfoSdQbe6VtIox+XTeNPrQqSOp jGngvtH3JvKxoHYPAEHaF9FNNR/6dqGqvWbFo+P0ktv15nPvDA== X-Google-Smtp-Source: ABdhPJxFOB2JFPFlCDpPq1MPgER+VKPuhXzVYHU8etZDo4l9TYgA8kJNQfpL2tScarqog9GCsJ2cII1Nm95GjP1oIpY= X-Received: by 2002:a05:6830:48:: with SMTP id d8mr10565034otp.161.1623623621407; Sun, 13 Jun 2021 15:33:41 -0700 (PDT) MIME-Version: 1.0 From: Bart Schaefer Date: Sun, 13 Jun 2021 15:33:30 -0700 Message-ID: Subject: Back to typeset array[position=index]=value again ... To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 49068 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: Please keep this separate from the ongoing threads about unset and { read 'hash[$key]' }. Back in 2016, Daniel posted patches in workers/37591 and workers/37592 to allow "=" to appear in aliases in some circumstances; 37591 was applied, but not 37952, which conflicts with the change to getasg() in the first hunk of my "take three" patch on the unset thread. Further, examining 37592 makes it clear that my getasg() hunk would break aliases that contain '[' anywhere in the alias name, which is a nonstarter. I think getasg() is going to need to know which of alias/hash/typeset called it, in a manner similar to the "allow_equals" argument passed in the patch of 37592, in order to repair typeset without breaking the others. Other thoughts?