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 6229 invoked from network); 21 Oct 2022 21:25:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Oct 2022 21:25:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1666387540; b=TpjMQ6b6tyuxBYpn0olVR4kdOWzDRmpCJxpQ5rtAiWQorC3UBcgs4ET4cDZaLPqAiRT6lFvW6r CNPAshENfV6smbrJ203Y+ugtO5eDnWdFq++nLqoZF4oVyBQpxmYlqA61uKFjWCJu+aUTBHZDEi gGN141PVaEz9wf4hmf6U/yATNVKutwp9rcolmdDXDdep2mpnB7QXgJ9LfMmwfYzzgjtZ0fnj1k 9Eb2SHIddpP8Ofi0lbJ1SohXI+q+aYVu+lGqPyGzQk5iKx0NeWpZpwXunLA4m/YMPw0MsAwEZe 2fFu7+9sYGF+kBTFNgshGYryI1GaApsYS0vaOXYc06BNfg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1666387540; bh=CBV5GUIWPVHxUW1ck9Fmulk2wLOliS7AgjrBdnPiS2M=; 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:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=UkC7PSjA4fhpqSccXgrMYYdS0491rO/pc0brs5YOHy2l1bwyvVO7JUPvEK1fYdG3ZhBqb2/qV0 Dg3wR9/gqtT340Oode36j/TuOvMfJPrJ6B1mazfT7aSVcvhTe9HFW9Fg3Nj5OmV/kD1AUl8ew4 ecIwZFm++MTdEV5tEKXGC8bBhuAB8E9LdH1a8091RdVq0HgpVGkxpItFGbgwsl0RcxZIYNT/mm 1tV/0+NMTBWWoxU/lpvH/GJJwrZXPyVYD98zuW/h9H7BJQtZvhRlS/UuilGCCEM05tfp0URYjT fcsd2Qaq+UuPv/NoBhHYZeonOCcuMmN86p6Zp5Wp1Apeww==; 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:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References: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=CBV5GUIWPVHxUW1ck9Fmulk2wLOliS7AgjrBdnPiS2M=; b=LmI6fXoy0EGJfzzJ6F41GjXGQY tGA2WPlJZDY+i49tpM6QNudX4RkeJnDZZGaRYhNSa8xTsxddCHjpQEBK5ZvL10o/WD5JWFQYI8Ih1 3YFbr2Mly8PM0Idov/tXCtJbBSwNdYgoGi1cW415cZ/cl4wRuxx4t2rerRwx0mmNDQnWcvkeA5wFG FQhmkeBUeMTJg4y70dceZu0Vzh9rhUNIuZmllyWJj82a7sxmzwglodicw9SHswKKuhEd5VWP+ABFk P5Z/huGnYI4sx1YhO537q3F808zC3rnNSS/HjFXZN8LcP5DE0M1G3+bCOe4ldItfbiGwgAGOiBnhk uKCTpllA==; Received: by zero.zsh.org with local id 1olzWO-000Fud-LY; Fri, 21 Oct 2022 21:25:40 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f44.google.com ([209.85.208.44]:41497) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1olzVe-000FZY-54; Fri, 21 Oct 2022 21:24:55 +0000 Received: by mail-ed1-f44.google.com with SMTP id z97so10506765ede.8 for ; Fri, 21 Oct 2022 14:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=CBV5GUIWPVHxUW1ck9Fmulk2wLOliS7AgjrBdnPiS2M=; b=Dn0DW8DSFOetThLYEQVa7MhUJrVbDY11lnDX+75DLBFY8oKnzSPVIxXC810LETTzFS deRWQTQOut9djT5P7fiOxPT3UZBdTPp/BzRs1+ZAnwMPgzA9q0zvW5s3Cov0zbLmQyPz WEhQsthI+nxd2L8B8NNMMkt+snsIDrkBs+nFEx/e07lFed2w5OR0Na9rb1elq2x9e7kS umq3ZYBXZMk/iIK/0C+9DST4GujVdv62oTLOftRrctrdGXcyIcWTW0lfwE4R7zP0AQY2 Wog6sL5nnL2HThNoY3nGLioiS4eIKrxsDot7hSYPseVHmD9KZwsRAsLqNdxByHoonB6U hKqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CBV5GUIWPVHxUW1ck9Fmulk2wLOliS7AgjrBdnPiS2M=; b=buHz2LibTuaAxNh0MPnogFMWQGZzQl7ZWsNZG11JLuo0X7vnPa9MJ1hlB5U8sbkj0x sJDQnViszftHJiLphnUoyie48aXwz9Id4j6k06IA+GIYs2hu/DR+/qiTdAtiQfeulWgs cD0hY1yqQIgDZYr9nK/Jc8NSepMruVWFUiDeExqy2+BAnB+jKcYnibEt4pDKgJj40u/m XRFXxLmv3vyiUxnSvfIOzsCmPKkyOdikt4ml4SF6zBifak32NyqTOQCQsFGuXbOSM30O T6xToJhtQSNOTUP81nA9RXerXyGcQ6GgxxgMRScmcenvBbrbVZh2p+pN8Y0Xy6J2UY3I kdaA== X-Gm-Message-State: ACrzQf1amPhCB73HpHdnxCJY0qmYkKHHZ5Mdg37MhQfxYBoEGsNsJ8fj fAcRz3WJlMoNLPi4hP3EALa2OCM8y6UxaG0pd+AcXWJwHy0= X-Google-Smtp-Source: AMsMyM6r9dtDwJItDXnZPOO4fuz/xE3hmpvkS2C+4UNifEYN+Ttg7A+AOWm+a57Lx1H7GC6/EuQxfJV4GtlHJWszyaA= X-Received: by 2002:a17:907:2c68:b0:78d:eac6:2d0d with SMTP id ib8-20020a1709072c6800b0078deac62d0dmr17660548ejc.55.1666387493844; Fri, 21 Oct 2022 14:24:53 -0700 (PDT) MIME-Version: 1.0 References: <2FE96386-2D04-434F-AD2F-F08356B1AE04@kba.biglobe.ne.jp> In-Reply-To: From: Bart Schaefer Date: Fri, 21 Oct 2022 14:24:42 -0700 Message-ID: Subject: Re: problem with 'ls | less' shell function To: Jun T Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 50804 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 Fri, Oct 21, 2022 at 2:22 PM Bart Schaefer wrote: > > which means the new subshell for the > function has to be in the same process group as the foreground job at > the time the STOP/TSTP was received. Or more accurately ... the parent needs to assign the tty pgroup to the foreground job, and the forked child has to wait for that process to exit and then grab the pgroup (or be assigned it by the parent). There's a lot of juggling here.