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,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 2720 invoked from network); 29 Nov 2023 18:25:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Nov 2023 18:25:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1701282356; b=bf+nsjIm5axTOYB5RhjRzIcfcO432UKNUZOO8x8GqD0RDmirt/UOuBZJQDUnpq7DTR/7z+v5j1 lDhI+JsqAGSqKLi6HyaA/fR8pw46c60BLDS+0OpAHSkPWY7OdyzMuwQydNM0TeYe/lYlLAyvx+ hgL62wXtwuLI5vtZNR3gvNSA9z2TZHOfOKhmG5wq0d7L8flUVCd1CT+CwYGQaQyvmbHvNhkSiG JT44dY0c3l8TYw426be+B1ekRahEXWKVSxvVte0JEHgwBYoe5BRilykkSG666sBsM/HPKsot9T KaRZv4JKhtU56ZjEM5cnZ/ZD0lmhlAz1c/qH5RWJiCUP9w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 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=1701282356; bh=8XJ/p521SmRBX/DU0/Y6TFv2Gkgw8DHh94u0XNENt6Q=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=C6DFVO3X8RfgnlCi5iJPhR7ePgCExjd7Vn0qkdOJ7z9VMoYWWWfsL7eENH6atxF9Jx2VV4qmft wC7dqdxgI8hRldmQHPpzNE3v4dv9jJOXpKcqBDqlDJOhY1823FM+eWhd62lIkInr/2bZZ8OG7x nsUIjrxGZ1BJUuN5hScppvfXp02iQbaklKUiGUD6gDgjfYHuOyFYNlV4VTXXKw07JPodV/kgZ8 8L2TrkeQIC3SWnjpYLbrh57tjVyAolAxj6c+qOMpPFIJvs5ZnFxG93kGUlcu30eeDaJl8+rgt9 aPfGDqPs7d0tysW/kLmFXnXxWHQd8oCbnkhgoB2uazYJYA==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=Vmj1Qv29h1YajncVkHbIIYBVPo6YixBkmPAQMKMG3nQ=; b=WU/JDwp387WVEZ/2LuoWF3uYDY 20tngf3rToFkYOaTd412b3vx+dAKBdXkkxcOLypPdVbqhPW8erSg+/PuLUeM6G2LWgF1pC0hTD/B1 Jq9j6lMrKe/pYd6+7faNLVCeSD+/nTpMNEdVUduDU8P9DkXqpRoSmMx7NM0ATfE2Va9LdJ43nhiTU iYrFEhZ3wHKsyn6sSD13fSSDEEGE7xjXWTHRDwqNXjylCRyZ0TMDn+V95GwSNPbaly4e7TUKMzcvA 9NfmvZ4l2LeLwTsR7/2ugJ96TL9M5BqvpY5IM1sC23p+cu+8I338JIjXvcMKklLUz53lXqWz4qAi8 J+WQ0/6A==; Received: by zero.zsh.org with local id 1r8PFz-000AYG-7u; Wed, 29 Nov 2023 18:25:55 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20230601.gappssmtp.com header.s=20230601 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f53.google.com ([209.85.218.53]:60830) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1r8PFM-000AEQ-Qu; Wed, 29 Nov 2023 18:25:18 +0000 Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a0b65cbf096so9832566b.1 for ; Wed, 29 Nov 2023 10:25:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1701282316; x=1701887116; darn=zsh.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Vmj1Qv29h1YajncVkHbIIYBVPo6YixBkmPAQMKMG3nQ=; b=QMqKd7LRz8aFR/SC6VU3hTEpd6VX6AJ3QVb8a7HC05TODbvN+5HQqrWW/Ce4en3ZGH uO4WSNooL0XfSg19K8q+n1LB4nJV0e99p+/pk6k0/qwkSBUAFxSSpn1WDoGFRH/PFeuV eglZ0Xs2YzTEppdz5oxpZ0Hg9gwnxICckeTUPkskoutA06hkl+8dfipZtdXCSP5oieYW gH93haGTeQW71waMvGt7/qfm/RBTTLgmp9vSUXmjqmafPciqgnEpIyL0/rR5jsf/0p8D X7MYNrgltuTi+9cAJ5VXtzinTvzEZlWT3Jwceztv0MKgQONWMtOFUg7O17qPuMcb+raz ROnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701282316; x=1701887116; h=content-transfer-encoding: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=Vmj1Qv29h1YajncVkHbIIYBVPo6YixBkmPAQMKMG3nQ=; b=jnTUPGEWmgCapGv5Ahkpq0ud62Okj5K+5UnZvsECdEH/sfp/zJIYVcHMOQAqahUVsZ GSJKCNnDE5bS2Onk8f0jUOWenxLPYsti9ygTl8Da5XuuMdMGNYj5qZQLs99zCoWcSE9B bVvOxArdvwVZ09N9pD3ronWrE5G+q62XP8sW0Wvbhn/RXalmULLkyuIBc+XZ3EeZIieJ Clyvs+ydoEWAgq1+BvS+jnBtQPylWTtZ2i4b2U4QXL5F6WOqhfcFV1ceZOS9vO6lrN+/ sacDJlZeGFJNYl6+tKVHtFHWAlEAw/rVRbk5rInTLAoGTENOfKL/TfNOxz2x15l5zAeX jbUg== X-Gm-Message-State: AOJu0YzNot5TRzppZa/b+xemK/Xsl93YIher1Urwedii2q4PXfvG2Yyw xqVYuQf37NeHJafsuPiuVsABlBqGyGie+j9ZN5v1fbvfbTQnrLS4jVk= X-Google-Smtp-Source: AGHT+IFUhClfeQqM+sk35yY7J+fQU+seoOpvD7YJ7MU9+Fsw0mB0XWSZCUS/OudLc8XHDLM8Tng6G0MS10yrWF6v5bM= X-Received: by 2002:a17:906:7396:b0:a11:1925:8d3b with SMTP id f22-20020a170906739600b00a1119258d3bmr5578054ejl.3.1701282316077; Wed, 29 Nov 2023 10:25:16 -0800 (PST) MIME-Version: 1.0 References: <4a7436b9-e444-4858-ad0d-a9913657ddef@DB9PR04MB9626.eurprd04.prod.outlook.com> In-Reply-To: <4a7436b9-e444-4858-ad0d-a9913657ddef@DB9PR04MB9626.eurprd04.prod.outlook.com> From: Bart Schaefer Date: Wed, 29 Nov 2023 10:25:02 -0800 Message-ID: Subject: Re: [BUG] zsh fails to resume function To: Paolo Perego Cc: zsh-workers@zsh.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52334 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: (Note, we received this twice as workers/52330 and workers/52331, I'm responding to 52330.) On Wed, Nov 29, 2023 at 9:17=E2=80=AFAM Paolo Perego wrote: > > It seems zsh fails to re-enter a nested command putted in background > when defined in a function. > [...] > Can you please confirm that this is a bug for you and give us a link to > backtrack the progress? This is fixed in current git HEAD by workers/50874 and workers/50922. https://www.zsh.org/mla/workers/2022/msg01204.html https://www.zsh.org/mla/workers/2022/msg01252.html Note the subject of the latter refers to "problem with 'ls | less' shell function". In the specific example in your test case, "less" was known to trigger the bug due to its internal handling of the terminal (stdin/out/err descriptors) and signals. Thread starts at https://www.zsh.org/mla/workers/2022/msg01115.html It might be possible to backport those two patches into your build.