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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 3274 invoked from network); 14 Mar 2023 11:07:29 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 14 Mar 2023 11:07:29 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1678792049; b=ZHLkwBgnnT/tTFDKhR6EskSovO8fDLhbxz4R0Qlu6XSuWYhJFSjXF01aGur8HmXdKRy9xgJaJZ LtveYueUSpuBD8ZCcJig6cFIrmoMtgO7TASSozZKIhmWtrqoyDHPqgQHoz7XEKWtCWpGf2xiQI 4DawBi+bMYNrw8zX2IQbh65oPZ/ET8VkMw0yWtrHD1HLoXG9ixfBkPsAnAfU6LzPjU3fkhIjaZ K7eBSVXLtf6fbo5KadsxP1n64OcdnYmlJd/86/CwOp1NIJ91GJX1GxFu1bxEH2hkjvYYOdwIK4 Hd/qmpN/MNaaedJZJbs/LSQWqsDDPWNmpAhio53mqQGXxQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; dkim=pass header.d=gmail.com header.s=20210112 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-20210803; t=1678792049; bh=Ifv8sxRgTVkWjvSfxJL3h3TifqZ+b4y6+1md3nKvyOE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:DKIM-Signature:DKIM-Signature; b=DnHy6plOd4lZM7fz0aZsnaFShtFiCm6/GMM4RX4FDz2l8CSDYHMcAp6OtM6vmL6J75BIHPIakB CjLLlQwiVacbaekKkTeMUvavKAVYJKokC+NqvlSwrA9J69ygCjX1LJ77Y0T+Ai8ose+O8Oo1oJ /IluXrXdpGSNNr0N+3pV0mVTUB5XWRHBGeeGPJYYU5x1ylYrdB9Ezrq3wPpv6R4Dec868qf8Tk 8y/0WmySTNUEUNi+kSAkqRpxwEMUiP4lIMCR5wTAOLldppDKSoVCQUKBDjyKS8bErJhO1DN2jj NtBGuLQdyU/phabJrllzhCDfhkwPtV0fEUlnSTaee73Diw==; 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:To:Subject:Message-ID:Date:From:MIME-Version:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=47xI1RuDqJ6RlPiuOU0lQOf5ZfOrK+GOp4azsVPAI7A=; b=YpBmqCchtCidSQTsELKPF1YmL7 75mdygRyUi5ABcXwG7ylvk82N40Kl6pTPm9/vVuCaGE4tg55SkjA42GZjkzyg/eCTdueHyjSdnp+Z BIUpWKCHTEXAMAK85DSXzSex6LoeCnviH4hGO04hr/eZyDn7xxEjsmTaRo9LOM9Wo4cYXa1qsFasS OgOmkWGy1M8m0p9M6LQdL02bxEmXvnrpcw7Ej0wLAJ/AzYm87P/B4WCeot4fm7oisuYenivb1WWDc d+K8geQmzl+JG4MWKJ4Wc9E/2NEjs0CIEeb8qI+KT8KrQRAHykxy5XP5qQnL8MQz/OFqMNL8cuMa0 f25LsItQ==; Received: by zero.zsh.org with local id 1pc2V5-000DBl-Ad; Tue, 14 Mar 2023 11:07:27 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f51.google.com) smtp.remote-ip=209.85.167.51; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f51.google.com ([209.85.167.51]:42551) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pc2Up-000Cuq-Hf; Tue, 14 Mar 2023 11:07:12 +0000 Received: by mail-lf1-f51.google.com with SMTP id s22so19462578lfi.9 for ; Tue, 14 Mar 2023 04:07:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678792030; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=47xI1RuDqJ6RlPiuOU0lQOf5ZfOrK+GOp4azsVPAI7A=; b=SsfAuzNHeYYhWEupwkUnSWAQxpx15aCLuDYfLRTJskNjq0ouvXCn/RLtVyTsokk+mk kHMAWBoB5jjdhw2pLcsd9Z06LUpmMMSOvXgfVi7JlW4MpT1ZqjebVdXXFkbRayKOGHQf C3tJzmEOGdvzNIzLe7rLMFeya9xNQyEcoG/9R1SvXHTD24sQBogqn/XrO+Zamw4qKCVp SmzRx9NXrYC5Rc+xv1bWgqGWRFuPWukiD1FfIw4IlqngzYISv4uO6Gse48oMTHV8oYzz OvSzu/1ToBhh7INRSe9WaAXTzyuAlsV9PJ4okz3b8KTNvyVZRrPgfwh1mTHW7ntfgivD M19Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678792030; h=content-transfer-encoding:to:subject:message-id:date:from :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=47xI1RuDqJ6RlPiuOU0lQOf5ZfOrK+GOp4azsVPAI7A=; b=e8F+cL1SZpElowAT4Erx6BeOeqsi97GpatxIpTg+0C+ul3H2o8Ih01alT80E4d9upb sE06qo64xjJSRl6lsKhlFtsvWYdb5APl1V0Z/8G0yO4UMjqG62LjP/X+vhl8qDGjBiBg MpVwiPX99KpChstdcga7CnTvbHw9CEZ6fAyvTpgIn1+Jvvd1w1TGxrAH87Y6FtFQ+lSV klF4FoEkgphcXizCk162bnAHc9U2G57nKXTjBCz17Y6AiYrrM6eD8KEU/Gb2LshnEk0Z YWndfWZtEJstjw7sbl+Bt+hZ3RVlwEOiPMzo3XvkmJSo8cFQHZ3ElxflCaf5eudC4qGd klQA== X-Gm-Message-State: AO0yUKUIQeOrFsRWXDbYxKNKFT1Tb7k4mX0n7XAmzSmbadtqNojVRVop 9Boey2laFy6m6eZHQX7zqPrHDvSDr4ZlVI7WTmt8Laxj+WY= X-Google-Smtp-Source: AK7set+5H3hXJcd1fh29eEO5N1YFpZeu+4vnQDjUgyjm0k5fbiFz6jazGs9ZSCrgSuMhV3Sty/UjiUJ3loxC7lUxzR4= X-Received: by 2002:a05:6512:3c3:b0:4e8:446f:f600 with SMTP id w3-20020a05651203c300b004e8446ff600mr582794lfp.13.1678792030655; Tue, 14 Mar 2023 04:07:10 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Tue, 14 Mar 2023 11:06:44 +0000 Message-ID: Subject: Effect of different sublist execution? To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51574 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: Doc say: If a sublist is terminated by a `&', `&|', or `&!', the shell executes the last pipeline in it in the back=E2= =80=90 ground, and does not wait for it to finish (note the difference from other shells which execute the whole sublist in the background). I wonder about presenting this via some real effect. How to show that only the last pipeline is running in background (like the doc say) when sublist/pipeline is ended via &? I'm looking for a snippet that will behave differently for the two cases: sublist &-ended and ;-ended . --=20 Best regards, Sebastian Gniazdowski