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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26840 invoked from network); 27 Jun 2022 21:51:00 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Jun 2022 21:51:00 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1656366660; b=KIvUE5FBWYqzyZ9KPiqmDFQcU3LkAM5799AnauiunYXVAei/HVxeEDQXhSi3Q3lz80Ib6SolrN diyyQ/sGYpXLgDvC5MCNLwZgEMRnMOE68CD+GZ+cbavQbOr0jzs+6+JAD+Z5VIquJoV59AcIPC /qwLMk6e0XUxP5mRhR01UvAJ2yBGZ9g3Vr1D/nLJ1vNBgjB4dxhK6Hkbx9N4rsqQ7saBWjM6fc 3f00EBUVJlyMa5/MlA+7ypiL1vWXUXt5RXuAq+wcGabbJWLYgVgH9RQQ5VMxbhwB6c8h+pMOp6 Amg+Nuhd249kxau45KEyU9hPtCEuXeIRHK3DoGQv+1YfkA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-qv1-f51.google.com) smtp.remote-ip=209.85.219.51; 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=1656366660; bh=aJZEpSxJIvaitLkfTvMa44YsvUGsoNjv+zTIIAz4WYw=; 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=S1EkvJ6qBDkX3opaR2AUh+P44K7eNjjI1dDGCl1nUG5CI5a/6eISjeAqYm2c5naNhR9ow5AiXP kik5UVnm97LwXXrQl1V6roe9yWW/RFMxD+oTU9vxXECAdlhsT2tzUcvIBHLu536q6KRGA3qZUX BkdYQKM/kY5YBKgGFM+l7ZWmcnG5urPhynwZqlqX1FjUmkebetGihcKo+6VCm142rnNBs1Yw1V 2LoUDwtUO4AfHnujShi9Yk84Mm7MUEIWacp2ljDgGTCJCli1n05eH5SGOVaLGSOGnExLSlmtRY Y69l5K0u1xLFGeWgYEOLOnLRHrSjojLyCygMcWFq/RaUGg==; 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=D2WPVuEp3gsZVGnS3qroXZ8wdlXCLv5FMLamuU9rU0I=; b=e+JfykJ7CDO6WsmXvan/nWIQ+k 60N3X3EoE3ZhAwRBQ4GXGZTGRxiopgl/jDosHYLz0wwh4KkyCF3y6bRGQz2IQ+adshUMCUmb9j9H7 YAwwV7s5np4AtYkoC8278818gD9kGqerJnN/I2uWnJeCRx8yxfvp5KyGAksPwRneJuM4yXYhP4QqX hKGgIR88Wgtk7LieraOl8rYnApDmYrU3i5KrMhrNaJWRipbrLVmD6BiYBpQdk98Yeuoa//gWb6vUv qMrHPeakkUdMAnRPCLEuWehORMOdu0TmPzJFvFRBTuWHBqeY0UaAGEN5HKZLprRIVdRAO7cOur4bC Fw3DMvVA==; Received: from authenticated user by zero.zsh.org with local id 1o5wdH-0009yC-OF; Mon, 27 Jun 2022 21:50:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-qv1-f51.google.com) smtp.remote-ip=209.85.219.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-qv1-f51.google.com ([209.85.219.51]:46612) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1o5wd0-0009dz-GN; Mon, 27 Jun 2022 21:50:42 +0000 Received: by mail-qv1-f51.google.com with SMTP id i17so17293599qvo.13; Mon, 27 Jun 2022 14:50:42 -0700 (PDT) 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=D2WPVuEp3gsZVGnS3qroXZ8wdlXCLv5FMLamuU9rU0I=; b=huk1fFNT4WDQ3zYLfH1FFw9zrN05z6XvY5U7J97jgLezgPuzUZ9tc0zCwdPO0vzUMH t3QTafh5u4YlfDYfGZZlZ9cLCQ6IuHS3MD8/MJK1XlXp4RFHcKSxWwc0Y+nD6tmnKyb3 uvEshNofkR53hOII4WSnmZ1HaIipn4g7s/htm2kHzboy6Ki1KVNBVrKv/cmBnow3lRVe em/5hYTHSWTStZa0X8g91pKkApmWAV6dX/1eaKPjzUoCUgXaW6sXb6AB6JnPmJsdw9e2 2LYk4rEhEGLGtq2sC4nJaEI+a9pAo10T9wLPIFeEbAvkqWgw/K8zwnfutqhdKDXQpsu3 TYXA== 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=D2WPVuEp3gsZVGnS3qroXZ8wdlXCLv5FMLamuU9rU0I=; b=FgAR72V64XMSg/6BxrAMuFhhpXgSUjfIS6eLRkCELmCj6vu8YMI2tgvAiWgg9oKvbr 3zB4GH20X6ygpzN7Uneh45BvOQOsvopsX62zVQz2cLaTr5ya7p+RcAhnBzBLjM94x83H AdcfNr7huDRKJBP9b/EkFxypIMblWgIpH3JIH0YCw7R9Vf+uo/wTJ6f5IyOQ6UPd/uEh hpQmv8UrqzTQV6eHjWMH/PaXlVx3wyiq/TGfNgOcIwPZ2bynX486H5C9t3Bc0qFTboOq mGurFESQCYNx1P6WU6cNeTrfIdkPO5FEYPPTQFrTUJbZcCT27HQYHS06w5hldl896TVj Qvzw== X-Gm-Message-State: AJIora+4UbWBKf7Nx57sbuZKvUhG+FY7I9OxSvMVxjGp9LfDqBQpgaSR pddPiMdjhxgFRbNy6BPibwzgMf+mcQbvde8FeQ0vwR1lbwA= X-Google-Smtp-Source: AGRyM1ssfqof2sark/9T7+lqNH18qVJDDqIIZ8ygERfehLDebeNCKJ7VcmLP9loCwNqmAWIoU9wo/awsi8V8HkoUkQw= X-Received: by 2002:a05:622a:2d2:b0:317:e4ad:11e7 with SMTP id a18-20020a05622a02d200b00317e4ad11e7mr11001737qtx.185.1656366640750; Mon, 27 Jun 2022 14:50:40 -0700 (PDT) MIME-Version: 1.0 References: <3accd9cb-aede-41ce-96e6-f3e175392b9d@www.fastmail.com> In-Reply-To: <3accd9cb-aede-41ce-96e6-f3e175392b9d@www.fastmail.com> From: Roman Perepelitsa Date: Mon, 27 Jun 2022 23:50:29 +0200 Message-ID: Subject: Re: Bug: 'export FOO' not idempotent To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Cc: Michael Smith , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50390 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 Mon, Jun 27, 2022 at 11:44 PM Lawrence Vel=C3=A1zquez w= rote: > https://www.zsh.org/mla/workers/2020/msg01350.html > > It was resolved in zsh 5.9 with the introduction of the TYPESET_TO_UNSET > option, but as per workers/47545, "[t]his is a long standing feature > of zsh, so the default behaviour is not going to change." > > https://www.zsh.org/mla/workers/2020/msg01364.html It's odd that `export FOO` doesn't have the same effect as `repeat 2 export FOO` when TYPESET_TO_UNSET is not in effect. Would it make more sense for the first command to have the same effect as the second? Another oddity that suggests the same resolution: % export FOO % typeset -p FOO % export FOO=3D'' % env | grep FOO % Either `export FOO` is doing something weird or `typeset p FOO` is lying. Roman.