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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27538 invoked from network); 1 Dec 2021 06:32:33 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Dec 2021 06:32:33 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638340353; b=DJVky5mmSjC4fQ6S+cYUlRy7oHbb4AgR7r7k9OS4TcTg1EUvPgmiS35IwfzDMM1tSOjxFLKvFE eF9lXUCGO9T2zj3VsaNQkOwItiTYXcMiPltKxVYFeiQxZEwgcGA4n50JA6Z7RgWTbCWDGWeD6w B29ijVejDr2zWqj6voBosgOiAdhsDjDDv7ZiiDHfhWS4wlN+LrbvjlMhUQxnK5yeKQ8eq5ekga Qy2AIgY1b+5WIrUssx8EP5+v5fbL4/yAgrVi/+9+PHwN3L3/7HfF8vAb9mBdKEClLfqQbRWkZ4 a25wdRg8rviOQXEX8ZufrMvTkB+KUE/sOPUCPA4l6nVMeA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638340353; bh=JuD0qWtYq+964rtHDfgxwpxUapo5bQyDcQllnbR3sTM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=hC30EVYRdwqLRtQ8UYAhcNMjAfT3L0tvoXNW80ZpsQnhKti0ncUuSZ6uw5fqHwoZ8SVWBv428u nfE47lpzwcOC+YLylG/Se2ZMvR8uDZLotV2Nyfgmyeep5iZltJtleWoN4ehWFbiZJR+PAAKzcx aLYda2s9l7HyLpPl0d4PV4p8YvZYwaWD1c4e4kMWYDQcv7+sqofxJEF77vMt6wLPisFqsFlzYp BK6QlCRzjKyietG/7cA8h5SNXiaQURfKRewnem9C5FLfXfWrUr94WbgaCAXkPM5sCWhVDvcY/t 5KgSmjiC2mwDzk9uPTfi84g4XXCu1K9BeySSHoDDzY6zSA==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=cXtto7EbY4Rqb6CViVZaP+j0VVqynTjdDzEGl8IyTHs=; b=JU/LlfzJ9yvgXdvv4+J0UySnIy imn0eI0gL8pvdxn7e+nZyrr2bEfljX8L8c3T07wK8n3MEe8F/Vllfq2uStJyaycLnuJcs5RvqYgjW npjtPC7OCAYNXMSqbupp4yinIP176vbTGENCM6X7HMfQ1xA2A4cHX82mycog0I9ipjPAPct0Y+mH+ 6c13/uLCPWJagu/6CGAjDL2ali1nj/d90abunBHEAwdF/+LF3k3i6GbJzzSE10+p5j/zG8ww9wEYl RAdWd6dPwn17rbCAC0Pdxv5nWdKCm4bSjGtIkxTksIaxIqR5GmWHoj/JTeq4U1P2+xB/u2h12PFo0 JV4tVbTQ==; Received: from authenticated user by zero.zsh.org with local id 1msJAN-0009eZ-K1; Wed, 01 Dec 2021 06:32:31 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:43411) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1msJA7-0009MP-Q8; Wed, 01 Dec 2021 06:32:16 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 63C4A5C01F5; Wed, 1 Dec 2021 01:32:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Wed, 01 Dec 2021 01:32:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:cc:subject:message-id :references:mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=cXtto7EbY4Rqb6CViVZaP+j0VVqynTjdDzEGl8Iy THs=; b=UvlZpOkPaziC99Y9yoFHUqCAQQmMp8kmbORmsmQqFqDhYXzIhRMmYlQ8 ZCDO2VYcQ87bUFnAwOqSzKOdk/qZp2UWqC0SsNgOgAH6bs/J6s4Tv739Gol6zZm9 2ZXeomJbmjJyKOqef1C9WCAgRU6qF+E77ZxABxxNt9RxaXHZNgmZQFVODxE8HHUk JdtrEHiv5uKG2gKJ9vY8E9+kgJdQ1HXNktbrNBjk9H1Qombs6WxyY0GBFjuSNbXn XKCDK1uwPnbIqomIKNCKX5U80uESp3F0x2IXOQZzw97tklry6/pzWxTMAJpaRWEg 7vXXZS+Gnvqx4XW2J9t0/zqD0DEIFg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=cXtto7EbY4Rqb6CViVZaP+j0VVqynTjdDzEGl8IyT Hs=; b=M+WqQ9vOuaK8mFhCPl6E91oKVQ2o9DLSoWn4ZSxHVJqwKQiH6akzOCfsv 2gVzfX/eaChqtLGW68uQ09gmU7wvXtlKcwcF0Oimx4HtUlQwyeX0yPwEpv6T0gQS wmL6/wS832nvOf6Xah3I+ac5Fq+6dCnaCpE20ft2KLzmZoIGyApAXdjZHe1qH4Td Dclr2FShBb64ppXzyLOPsjW3w6V/yt/U6PdCk1wuUN4SS8CU/Qrp/wxzZbtOUAie VQSZTi2gdZxSsxVBNhvcslXzX5tmEWwcwEwJIJ0x+LBsQKn5kXj8PL4uh/6VWtMj Bsc1ByAv0vQdCRk3pujga1AOFe4Yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddriedvgdeljecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtugfgjggfsehtke dttddtreejnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpeduudefleelgeffhe evgeevfefghefhuefhheffleejudduueehtdffgeeivdfgheenucffohhmrghinhepghhi thhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Dec 2021 01:32:13 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4J3q4q2ZnXz55c; Wed, 1 Dec 2021 06:32:11 +0000 (UTC) Date: Wed, 1 Dec 2021 06:32:11 +0000 From: Daniel Shahaf To: Marc =?iso-8859-1?Q?Cornell=E0?= Cc: zsh-workers@zsh.org Subject: Re: RPS* and RPROMPT* are no longer tied since zsh 5.0.6 Message-ID: <20211201063211.GD26421@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 49628 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: Marc Cornellà wrote on Wed, Nov 24, 2021 at 11:03:58 +0100: > doing some testing I've found that, when either RPS1 or RPROMPT are > unset (but not both), changes in one of them are not reflected in the > other. The same happens with RPS2 and RPROMPT2. > The same does not happen with PS* and PROMPT*. > > % zsh_test_versions 'RPS1=abcd; echo RPS1=$RPS1 RPROMPT=$RPROMPT' # > function in https://github.com/mcornella/dotfiles/blob/4bf802f6/functions#L78-L118 > 4.3.11: RPS1=abcd RPROMPT=abcd ⋮ > 5.0.5: RPS1=abcd RPROMPT=abcd > 5.0.6: RPS1=abcd RPROMPT= ⋮ > 5.8: RPS1=abcd RPROMPT= > master: RPS1=abcd RPROMPT= > Thanks. Bisects to 32337. (That post refers to another thread without identifying it. I think the referenced thread is 32158.) > I can work around that, but should this be considered a bug or is this intended? Looks like a bug to me. The two Param's share the param::u.data member, so once both are set changes to one are reflected in the other. However, they are both initialized with PM_UNSET. Presumably, setting either doesn't remove the PM_UNSET flag from the other, and then the presence of PM_UNSET causes the value not to be used, even though it's non-NULL. diff --git a/Test/D01prompt.ztst b/Test/D01prompt.ztst index 3fb27e620..6879e6fd1 100644 --- a/Test/D01prompt.ztst +++ b/Test/D01prompt.ztst @@ -257,3 +257,9 @@ ZTST_skip='Missing terminfo module or non-colour terminal' fi 0:Equivalence of terminal colour settings (background colour) + + (RPS1=foo; echo $RPS1 $RPROMPT) + (RPS2=bar; echo $RPS2 $RPROMPT2) +-fD:RPS1 and RPROMPT are aliases (regression from 5.0.6) (workers/49600) +>foo foo +>bar bar