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, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25185 invoked from network); 18 May 2021 15:18:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2021 15:18:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1621351134; b=OBLdsgkQ1GjvoRI1gglr9wfXwta1Pjk5GeExrnrBaWmE4mynusHJzHE/gV4n/UNLW27fsMTBUn u2hsqgOwaMdHN/1zZkv9cgcQgYUXWifyXsBIfjBoaS4A70jAGtwgWitsmR7PvQmEOKFEAyJ/SG kiBc32J/+Mp9Y3bZGFQaX2iCdEzmjh+TTBB52tQLlq8IgOp5OGkVfvsMbvMKPdwuFBUs28o27g 5kq/JOejuskvFh0j0r0ix6K2yhIQw/+bEXd4w33iIraNJfXQVkM/Wz9JLF8de/XMVarw4lmJrD ZynNVKPCsYwwSVTaiu0+R9s7QS8g7ul/iDWQ807xbxv7Og==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1621351134; bh=srAdQNlR3BOlB24opuMn0yNMyyJtsriqQ/utseJAt+M=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=miT6ahFPFYAL/bgrpwlV4jatSoL/sj9brJjsq0BpvHoPKQv7CoHITLWd5e3rZYa90bacchnHKy vE1aEdJgXNWKPvI6X+b3WGaau/Ske6J9+zVXP0nRHKmIPELer0wXAc9ioJZhA5MYRD2xlPphr0 lVt41y27aUW6Qtz0XeYtOHb2+KVOHFX5JvuewWw42Lfl5rrrs+b7NQXWCJV45JEn0dlv4PtpGB eCfzayMeDIMPto4jba3IaliJTfLeEQbGYFZaOjd5TCmXBw5OfJz/BEDPedgJMUr3W9CTWsQ+Z0 2Sz+ayKNFYV7+yKfyMgLBekKhia5q9+Tzn00MopPykIGOA==; 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:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Dwuryx37kIQ23fZeimi1SxlGa8JZSnWZY7aSrd1DBVM=; b=kcqH7i+55Yc8VvmYmCV8NNVUY6 hX8evlPg8lBm/JyS800NVDzdDsS2FI2WJkCDXJnJ3J1Q1zULodbiGI2gSr7Ur79fia2AiWzKMNvS9 rl31fS6ExSY6mGo+F/cRkQm3MKXZqqKzQP8G7vTtWigi44VClcqe8Z6tY1lLgbR87WVtYXqx0J+of OPeClV/IchG6+a4r/ToONUbo49IACXjOfYUlAkeWN+6JnQGYxpJIxyqUMUnjrt/KnH2VjqFpVNiij aIA+cUn69dB5vEgpx0vIUBph91BCgAhGAU1BXiGRRfpoNGMqkbWKnZZUrCB7RzT0IIoKWL+1ff+La WUB7JgaQ==; Received: from authenticated user by zero.zsh.org with local id 1lj1Uj-000HFB-JP; Tue, 18 May 2021 15:18:53 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f48.google.com) smtp.remote-ip=209.85.166.48; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f48.google.com ([209.85.166.48]:39440) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lj1UT-000GzC-51; Tue, 18 May 2021 15:18:37 +0000 Received: by mail-io1-f48.google.com with SMTP id r4so9054181iol.6 for ; Tue, 18 May 2021 08:18:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Dwuryx37kIQ23fZeimi1SxlGa8JZSnWZY7aSrd1DBVM=; b=raQL5AlnbWdAY3KxATMqiKb2Mj23HV4v7ggKklOUmbWHHG5AmIx/hdF9ewysG5sodo glyx+XcDRUdw75Aw7h4nqD3h7hf64PGWV2reiBcJAjrBnOWQ51Qqfw6PH44RJYUYW3JX ZU6kpsTNXnqRCDUlby3etgwFbEc57cIs62wPMOcQScPMl1zl2tV1db87AlLV6DRYWOPP ePEfGdd5GixBmtVJqZQw9JvElhSWsScEosjHagviKBf13UEbxROVgRbZfulMF0hHLaE6 8/bFL0gnByRiPxx1IH+dgwcjJSZJLUVpwC/oqqotpv46iYPKDo2wxxwTneRtp5nisRbq aNjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Dwuryx37kIQ23fZeimi1SxlGa8JZSnWZY7aSrd1DBVM=; b=OSDMo6KM0MlLS9F5Mc0J6LwgteMvXaf7KU9aUsjBqJalyEYP67C6uebA1T8yJ0zaXx XBBgBlGoypykSd3fHKDQesYV5D2jkuDhwWeaiym0s6Rh2dQHwtT3+fXVhUv9io+OMhz8 A62M2wenZoy1D9ekJl/a5RZqFu9dLmtKWXFdakFeQ0l//ju0ZRnNXxiHHTqYSobHoPuV lQ6xlYCmaMHr9/KSWHHQJJFwXcNaqoWOhy0LvCdqPonnV/j1K6k/KajqILWPBcH/88Rl 9G/DfInEAshUFsSEtVMcqesr4s3p7DWgixcmTfw22J5JcqBpUtFY0aUEZqwgWVwcvzhK 0gkQ== X-Gm-Message-State: AOAM533DwlWXJQVyH5tbYouayx4WeZ0RfqP9njnHh6M+6MeQh1LAnYCC 4+9DtsxYdN3orcB6MISDmSKxnzzg6uCa77KhMbtp++MH X-Google-Smtp-Source: ABdhPJzwvm2dXyS4VcWfJbSOkot20adAsAaj8gxXEecZXbA4PZP2HN7ySOO9PSmKs25Qtn0LUZtC55QCTaRsMFwHI9Y= X-Received: by 2002:a5d:9804:: with SMTP id a4mr4641128iol.164.1621351115893; Tue, 18 May 2021 08:18:35 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a4f:cc46:0:0:0:0:0 with HTTP; Tue, 18 May 2021 08:18:35 -0700 (PDT) In-Reply-To: References: <20210516152418.GA39669@zira.vinc17.org> <20210517202608.GA3255290@zira.vinc17.org> From: Mikael Magnusson Date: Tue, 18 May 2021 17:18:35 +0200 Message-ID: Subject: Re: $PPID not updated when the PPID changes (parent killed) To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 48878 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 5/18/21, Bart Schaefer wrote: > Aside, it's a bit odd that SHLVL isn't read-only. Even assorted Bash > tutorials found by online search treat it as immutable (statements > like "$dog is only available at SHLVL 2") despite that it can be > arbitrarily messed with. I sometimes set it (in practice only to the empty string), such that the first shell in a new terminal always ends up with SHLVL=1 (my prompt hilights when it is non-1 so that i know i can safely exit without having the terminal be closed, eg while testing new zsh builds or other things where i want a temporary shell state). I also do some window manager development so things like "SHLVL= openbox --replace" tend to happen as well. -- Mikael Magnusson