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 3352 invoked from network); 11 Nov 2023 12:00:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Nov 2023 12:00:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1699704039; b=FciWTY5j6AQXHDj3xOAbZw4IGfLLALSGlUIGXdClvYuKmToq8lTPeQl2xhwkGPtB5a3xW2Mkl0 kdFI2ypKhWD2LkMVAV/NkJGkJjwgoZKoIuwubZZ+GdRPF3osjLtbnm4u2xc2e9/E0EaF4pVa56 UFF72qL5Wc6ZEGrHEvlZSyxUVsFiWEz6bEg4V9+fjTLQZ5c/c0Pj0jlwzFH/T/AD5ZTmDhj4d+ S1M8+eri9QOWo/US9aU7twt1ybl5ZInVsYA99i8qLFsxGdb0e2M/MA4e59LEkxPWSgXaa2K2zn +Q1OaGxlkqEuSoLMBZbsGLXC5c1rR/PBtcaOHixV5w46mg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (relay9-d.mail.gandi.net) smtp.remote-ip=217.70.183.199; dmarc=none header.from=chazelas.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1699704039; bh=Be55kX/69Rv6+obaR420wf0xZUDF1ChFEYmBQw9Mhdc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Message-ID:References: In-Reply-To:Subject:Cc:To:From:Date:MIME-Version:DKIM-Signature; b=r+q4JpQSWO/3KNkh1B0iL5FLrQLKLx3qyKO/Sl7bxed/Lu6qa4ThpHux9DoKG/a4/mZq4MlAwi RcVTMUB/kfO4psKEVKeejSV3tiW0erMh2gEN5koPVWmJLofTZtgETBlPy1R2twCHVGnGX/X486 WuW0dLx5F36sA8YQteJuANH3bXeGzTRPzdQsFkN5EWNAMq1s/ybLdH6iMH7NCiAmJfTAtQKpho aIUXE4RW8JNIZHusvl+tfrOEZ7lj7QJ7aoP4aoYcXXm3ENpP19LrBYtEbgFI2jT3j3JIatzfhZ gKHo25Pzi2Ow1ecH7vZWfwL8zeQ2U8R0ND9LqoSxikDrxA==; 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:Message-ID:References:In-Reply-To:Subject:Cc:To:From:Date: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/wtdUwix72b/bgu3AmDJgYLN6sGLmuXUbODWbCZCdI8=; b=JZnLr2sCtslsq59qrOzPI19Oze VEkE3oJG2irsLqCtt22iKDDfMJm8Jqe2+MyzJj3rLHK3i0xEr3Nusr+9UCFIyVJ5HPgZoRGRVFQk9 HsPBvbcyMPSyv0HOi+XZghI8uJOs8uc+2WUyEXu2LxJ6G9TeVjz09Tlxln5WL4qfA7KwJmTWvOI95 JwPNYAfW6sKaXOoEIz+Aq1qtanv7KMRazyy0hS9UdyQx35WFB6Fh7sW/p2GCDyqEOXN7De6wFIvCc O/Vv2dUh+O8IyWR4s7GzLLslqbThpB648ZtBdQVfMyVYtunXTygbpK4H0drpRvRZDWVrXEXMsg0RB 1P69p/xA==; Received: by zero.zsh.org with local id 1r1mfD-0002T8-1h; Sat, 11 Nov 2023 12:00:35 +0000 Authentication-Results: zsh.org; iprev=pass (relay9-d.mail.gandi.net) smtp.remote-ip=217.70.183.199; dmarc=none header.from=chazelas.org; arc=none Received: from relay9-d.mail.gandi.net ([217.70.183.199]:40285) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1r1med-000290-F6; Sat, 11 Nov 2023 11:59:59 +0000 Received: by mail.gandi.net (Postfix) with ESMTPA id 04B18FF803; Sat, 11 Nov 2023 11:59:57 +0000 (UTC) MIME-Version: 1.0 Date: Sat, 11 Nov 2023 11:59:57 +0000 From: Stephane Chazelas To: Bart Schaefer Cc: Zsh hackers list Subject: Re: Suggested changes to Etc/FAQ In-Reply-To: References: Message-ID: X-Sender: stephane@chazelas.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-GND-Sasl: stephane@chazelas.org X-Seq: 52291 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 2023-11-11 05:10, Bart Schaefer wrote: > @@ -497,8 +504,9 @@ tt(RM_STAR_SILENT), > it() Coprocesses are established by mytt(coproc); mytt(|&) > behaves like > csh. Handling of coprocess file descriptors is also > different. > it() In mytt(cmd1 && cmd2 &), only mytt(cmd2) instead of the > whole > - expression is run in the background in zsh. The manual > implies > - this is a bug. Use mytt({ cmd1 && cmd2 } &) as a workaround. > + expression is run in the background in zsh. In versions > beginning > + with 5.9, the whole expression is backgrounded during sh emulation. > + Use mytt({ cmd1 && cmd2 } &) as a workaround in zsh native mode. > ) > it() Command line substitutions, globbing etc.: > itemization( Unless I'm misunderstanding that statement, that's not what I observe here with zsh 5.9 from the Debian package, nor in the current git HEAD: $ zsh --emulate sh -c 'sleep 2 && sleep 3 & echo $SECONDS' 2 $ ./Src/zsh --emulate sh -c 'sleep 2 && sleep 3 & echo $SECONDS' 2 $ zsh --version zsh 5.9 (x86_64-debian-linux-gnu) $ ./Src/zsh --version zsh 5.9.0.1-dev (x86_64-pc-linux-gnu) $ git describe zsh-5.9-308-gd8a3bff4f See also https://unix.stackexchange.com/questions/761128/run-two-scripts-after-each-other-in-the-background-and-dont-work/761132#761132 -- Stephane