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,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7343 invoked from network); 18 May 2021 17:37:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2021 17:37:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621359457; b=l9pU138ro/VSETU9WQ8CNCoS67XeduAT5fRPstPJp1JDJCIEYJ42/AJCteZ9vx8/JB/KjgWqYt ggwm3VzEZcfIh6qYll3Fpn2TWmJ69Jv/1U7uww/uKlHItwiKM/XrAE670QkY7+k4vk/TkxfOvx TeJEgeNx4uV067J3F1SgRhvTUdtDkfDOe3buT7pkOD2Czp3giPzIR8SVsBzt6zxNIzEJXSb4P9 sDnfm3PvS521o3wjua52K2JVFQovwCOk6LhjqYLLz0Q+simmsJ9NBQca46RMkaurzUiYoFWuHS 1uEJ6dpugoxPWh8+KPi7coRu/+P2x3vwKO/otcYYbJKvkg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (lb3-smtp-cloud9.xs4all.net) smtp.remote-ip=194.109.24.30; dmarc=none header.from=inlv.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1621359457; bh=eX5GpYZpP1Sn2VExr9nMpLIbzO16thuJBhW0XWpB0vo=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=Rp2HxBY3+fWMGj9f7J3Kohn+mtf65yLzpZV7n8PXqEdQTDQKhc8qtkLkfOYmLgPmpKvaPM8n97 idTtxz6to8zS0zNcEcI5B9ho16KcZjqonVKSxtDHTL6GFtxe6CdJcOyjsUcaGwvuOznpDz+V1W jM748Zzfm4hkYqYXBm6cu3ViRrnRsggkZpxTpU8+S6DJHxq/JTeGubUV0aVCzUWV2Y2iqjUG3f fR1lPHhu/3GIwQ/C07VUFE+Bmo6jfzblO6eWiX3r0VXp+6hGG0zZOlVH2mviWFiUSj0BmOyO2D wBZB6FY7lrNIqA/RCercgN8JAzikh71Mq9030I/UE+KZBQ==; 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-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=MI5TCfugBujrwrkxaIW4iHgPIaSU1pNyQP10sAElvYM=; b=AUOcwDI21Z0LsPog7mtNROPOuU WeeRO5uFGN2IyDGcZfRoao4zndgpnXxBI2FpR5xOBAKfvzK7L9K2E4QetEo4stBVW7n96BuF21Z32 +AuwvsD41akda7Di0HMB5+ttSr/s+Cl0N7acy1eXIlMUUPaLMlDbrrT3p5FEA1f1evwlZ8j311NZI UOad4xJ9BZeX9LPNsPEWXeYYV5B+Rc6vzS+ryGPznwmzPXIAXgyaZdcQo5wfMCaxudMTOTjTP7J5o B9pK5JzAnRzthumLTG/7B/lhrf0DoDdxV9R67fYsRd3nnXYYlePheCdNKebExX1V1So8RMNHUsSEg El2xaVVQ==; Received: from authenticated user by zero.zsh.org with local id 1lj3ez-000MTo-2o; Tue, 18 May 2021 17:37:37 +0000 Authentication-Results: zsh.org; iprev=pass (lb3-smtp-cloud9.xs4all.net) smtp.remote-ip=194.109.24.30; dmarc=none header.from=inlv.org; arc=none Received: from lb3-smtp-cloud9.xs4all.net ([194.109.24.30]:46863) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lj3eS-000M9V-Q1; Tue, 18 May 2021 17:37:05 +0000 Received: from cust-839a4cd3 ([IPv6:fc0c:c184:1742:62a6:ec35:71f7:b085:244]) by smtp-cloud9.xs4all.net with ESMTPA id j3ePlXp2yVN4kj3eRl5wWH; Tue, 18 May 2021 19:37:04 +0200 Subject: Re: $PPID not updated when the PPID changes (parent killed) To: zsh-workers@zsh.org References: <20210516152418.GA39669@zira.vinc17.org> <20210517202608.GA3255290@zira.vinc17.org> From: Martijn Dekker Message-ID: Date: Tue, 18 May 2021 19:37:01 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfJgkBG/3L56D0qaKguhfjUKBFbw/m2NHJqCnZcMGjm4UYjqPVQf88MB7q1cZE0YD0z1mMdzUBFhuLUj4aMJOsiqRMncjAwkLZmi684BRfOLNJ/CI0DM+ CJ8N3k0+WLUshIqabpRzm5uoX6TUAgXLVHyLuzK86+JpJbrmycdKxkR3df/r88lFQJXCstVVOK0cyd1OSiipyZ5ZAqbW6u07eOvwacCRIf+PgnS2aN891JA7 m36umCw3jqp0zstwFsVXBg== X-Seq: 48881 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: Op 18-05-21 om 01:15 schreef Bart Schaefer: > Aside, it's a bit odd that SHLVL isn't read-only. SHLVL is increased even when you do something like 'exec zsh' to replace your current shell with a new zsh invocation which is not actually a child shell. If you make SHLVL read-only, then it becomes impossible to correct that. -- || modernish -- harness the shell || https://github.com/modernish/modernish || || KornShell lives! || https://github.com/ksh93/ksh