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 22370 invoked from network); 18 May 2021 00:37:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2021 00:37:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621298235; b=rg9iCpaxnerxYmIA7rnTJoeYIeaP2bz2wzNJgMUhWUm+tbCBjyaL462sSXtVR58hI1zGr0Mmbv +td8Rcql66Bq11C2HXqwDLAPmAGaDU4Kyt4mhOxZgmd77uCmEZVOKim39HoZpFMAq6Zuw0xeoo toCKVfQon1pElwFtosep+oKw0JNAOpLFZ5ykTPu+dHnQ9ixBfu1EitsTlE6hZXcfbtQ08va1gQ cSdCkp+xUFr1+Ljs18reuahvYkQNlY3Fya0TjBI1Z0rJtDaATVDy7jDFG5z6I8jy6IIVCdKCU+ vPqRd177oVcDK6BmGikAL8OU6LfBVRGwh1IYDqFpXakHOw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1621298235; bh=/8+lJhEdCrkLSot/UVtKZ7XZ1udwRl8vV7DuLgVBo9E=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=FthspS2fvB+Mv8Lq2Gl2pB4uZaIxcr3sGEh2NgCqLM4hNJ9nFbu/skkyyaclaNeG4SFqHIuAE3 8B7PVJaLO/PcMhFgXchg+2q5MN3FguzBvckvv1v78embiIgkf1DdCKvhmXYMV7N9VS449h/uOf otZD3KpjO2aE/WWE8tw+FwOY52AX2zh/6Fr52lXnh9FMLzUuCr4PDLbL7c/pyLlotxVtR8rKJ3 ZB5PABFX9be6cuWpkzr9o7n4Ux6C53ehFnm+lKF2HRsP4XVsRdKfLY4fLY1Z4fq9HNsMab9QFl RHcjJ/E7Z5xvMocT4G6ieutxpPS1q722wgUB/ZXprpKxGQ==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ngOTXhuqyljeGKcIZ4xG4glAxDdbdzPimdb0UEdIV9s=; b=rCb3V8tK1SFcg9LcfvT5hRE02+ aXSt1m8Vt78hMjHI03pQsuTisik4QEoZLMBHewGhQI6MIk3pBbZeRLC7+BlLV85PVaQ+n+3pZdVm1 sMBV/dgrk8qjr0ChzZ4/ZiTl2wROx7pW00SnZxtijiT4sPr2pRsJTd8oQydGrOkxP2ndgQbWptRcS NXI6TejC4mnK9tRF30gZr0AWg3k4CQe/36Ea0ZFPcFUHnei5B2yiEEgtO63b4LqCNRo3PT63/toNZ Y7cnzepUBfDKT+uDnx71xVk3kfQlBh9yas5vg/LtgYzo80+5Ul3DRrfPTlBl+INXpmshMhyRctX4L Du5cSlLA==; Received: from authenticated user by zero.zsh.org with local id 1linjW-000DB7-5p; Tue, 18 May 2021 00:37:14 +0000 Authentication-Results: zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202102e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202102 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none Received: from mx.spodhuis.org ([94.142.241.89]:53919) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lincg-000Cjj-1B; Tue, 18 May 2021 00:30:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=ngOTXhuqyljeGKcIZ4xG4glAxDdbdzPimdb0UEdIV9s=; t=1621297810; x=1622507410; b=kHSTJRI+cVu9R76/J8XA4tp5CYoLwW1I10SgpucOrX9Stfj +7N4pLPayBpmu+epu9QzNrkRXFQxp+DS7IqXYCAbYMFdx4MEH7XLwDYy1VHlJfdhTIECvPwRBQKow xeONkRt5OwOefKsjNrQR6wGNHWZsex9aauzbN76V5fbPMQT/Y6rp4VhNFuyHAv1oWNa3n6IiCmlN5 U9Q8lFTXBwNbnNzCtzbg/C3tZmmWGxvl6JJTbuvRymftSfDJWGEUGe3gHkIjKhD/V2q1WjKl0Qza3 IBaaK8l11f8ZZWxb54KHElpAvz6f68y385j3l50if600tsMWQXiJC6BwKmzQLJHA==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202102e2; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=ngOTXhuqyljeGKcIZ4xG4glAxDdbdzPimdb0UEdIV9s=; t=1621297810; x=1622507410; b=Ms+hQyTCWpVsSsc+bk1HLMjccmAapKvBON9UYx1qFTuo6NI +qHMLVT8oxYe7bvaNXUy9/bQ45zEPLE4DzodgAw==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lincf-000Cjd-5l; Tue, 18 May 2021 00:30:09 +0000 Date: Mon, 17 May 2021 20:30:06 -0400 From: Phil Pennock To: zsh-workers@zsh.org Subject: Re: $PPID not updated when the PPID changes (parent killed) Message-ID: Mail-Followup-To: zsh-workers@zsh.org References: <20210516152418.GA39669@zira.vinc17.org> <20210517202608.GA3255290@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 48869 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 2021-05-17 at 16:15 -0700, Bart Schaefer wrote: > Aside, it's a bit odd that SHLVL isn't read-only. Needs to be something which can be unset. At various points in things such as X11 run files, if SHLVL is still set then newly launched terminal emulators would start with SHLVL=2, which is misleading. I don't recall which generations of changes in the flow (startx, xdm, etc etc) have introduced what breakage but I recall that any time in recent years that I've needed to customize X11 start-up, I've ended up having to explicitly unset SHLVL somewhere. Here we go, my `.xsessionrc` file has some cruft which for once is only about 15 years old: # Sometimes /bin/sh is a shell which sets $SHLVL if [ ".$SHLVL" != "." ]; then echo >&2 "Warning: unsetting \$SHLVL: $SHLVL" unset SHLVL # In addition, if the window manager is invoked via a script which is #!/bin/sh # then it may be necessary to repair damage therein. Eg, startxfce4, # /etc/xdg/xfce4/xinitrc fi