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,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24589 invoked from network); 21 Oct 2022 05:45:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 05:45:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666331135; b=p3/8cgAYfY58uZz61l+IH11H/6tSGwN8/9gaFnUFt3+2qtkQM6q8lcrIzxdjf5DPCdPGWqf7Yt CsfIyZKqEsmS+n97ngopm5ZhmfnfUbxmjD0R2hW5MgQ/932RlT2oGqs6aGiunoAp62eezEBJT3 st6MnloVatpA2PjgVHj33/f/phoMLONkuvSwDJOARTTDP4q65+t1l0sj+nXhvasUxt8hqDUw/H veXST8hQYnRet6Ty3zBx0eWO0ACx7he37x9827UeqnF11IkMhvQ6sPNSfd3jIzZ1fFUx9Q6c2D JhoVGfeyuJwt3KvWoJcFvO0d4rkxShEWHsKgE4B7z3nd4A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd00007-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.7; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666331135; bh=M1BtDoEn7Wvd/EiCeTE4gtUH+mGia4OGEVd1Gp640NQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=D3izNPtPNyLgHixDIQn2o3FC0Bdzq326eDWMmCafzg5LC5b2sJ/nmR0B0pc34WWrupRdAvdGxk LDklsmx05oXFXyF134uVkfWM2JkqGc4lyMDBeiA9OW+eji1DKjo/pL6/Lnl9EyWXXFbSyrUtGr mlKDFlnhXXox2BbI+nFkyDnFTw+pHY/Hc94hl1coVlv14vqulkSBCGX2C5KAWn711jzVZ/tbO3 NOCBIruJFM/7ydICz25N5OtqsvPJo0XfqVNjgPXtbq1hf8d+kR5CoY/+5dq2RAbha1Lm2nRuHM E0NToPt+spGIWHjLRVSHSDtooSrXH8DrNXV/36xjQ76SRg==; 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:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=gFvjdli75Rq9O32ueqGuBQA3QtibO5jvJ/Y6j7Oaz6c=; b=o1L3AwkcV4fCB3cmdyckVaZGh6 T5pjK69M307pp3LoI0YkPl4fPfzbS2oI9s5IMM9Npk0WohOqxsX+0JmZlAkeG/AfPxHcPNrFaIOM0 egGTDoDI9O/SDch13/m1LWMlTtcLmUULs2L9obOy7aEnMoy2PV0fSS4/+7/7H/II51pMt4Pq3/Cc+ 8aGgpybiWxmsXETAzMvl6gt6/rFZIdLXSgrNzilQS/55nmvNq4aTwht76FY7NN0HU7lGA3cLFiXhV HQGLrAqo9qdkbYUvueXbGIWE55ApqY4/y6DaTkIHCQE1BkW4U8tPRwfo3xBlIO9O+9o52z6Tmv330 ZznNU6cQ==; Received: by zero.zsh.org with local id 1olkqb-000B1v-7r; Fri, 21 Oct 2022 05:45:33 +0000 Authentication-Results: zsh.org; iprev=pass (snd00007-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.7; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd00007-bg.im.kddi.ne.jp ([27.86.113.7]:58785 helo=dfmta0016.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1olkqJ-000Ahd-KW; Fri, 21 Oct 2022 05:45:17 +0000 Received: from mail.biglobe.ne.jp by omta0016.biglobe.ne.jp with ESMTP id <20221021054510171.DETQ.17988.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Fri, 21 Oct 2022 14:45:10 +0900 From: Jun T Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: problem with 'ls | less' shell function Date: Fri, 21 Oct 2022 14:45:09 +0900 References: To: zsh-workers@zsh.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 50800 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: > 2022/10/19 17:26, zsugabubus@national.shitposting.agency wrote: > > 15bf8ace168a86d0fae90b10e9f706baddd4c0bf is the first bad commit > 50134: Tweak process group handling to prevent unkillable pipelines This is for solving the problem that pipelines like the following can't be interrupted by ^C: zsh% { /bin/sleep 10 ; /bin/sleep 11; echo done 1; } | { /bin/sleep 12 ; /bin/sleep 13; echo done 2; } After the commit ^C works. But if we suspend/resume it by ^Z/fg, the pipeline never finishes. We get the output 'done 2', but not 'done 1', nor the next prompt (^C works). After we get 'done 2', if we run 'ps -Oppid,pgid,tpgid' in another terminal: PID PPID PGID TPGID S TTY TIME COMMAND 2447 .... 2447 3644 S pts/0 00:00:00 zsh 3644 2447 3644 3644 R pts/0 00:00:37 zsh 3645 3644 3644 3644 Z pts/0 00:00:00 [sleep] 2447 is the main zsh, 3644 is the subshell for the left hand side of the pipeline, and 3645 is 'sleep 10'.