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 3285 invoked from network); 15 Sep 2023 17:30:34 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Sep 2023 17:30:34 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1694799034; b=qYykdhlxADgo4Ji23+mOuPN5ZqJOsh2iE3zGYBvRcXSImUMnSq7B9VmRFOpHCavnmC9u/aMhR5 M4mxLf7MInWSP7AjXl5qQB45KZ28ivNRDQgOpe+pKCMsiAxxsFrnV+RIS7Gkvk54QSjcHY2Y7s h4whZXhwyiKcBIl4wAjW5MUDQI6q7gAUHSpXSwqEFyywvCGaMWRadtJgveXXaIgx3LYI4XxXAW iQiDOLN0VV4oDKgdhOlG6TEUY8Y+JFBG6oncYhnvApHhSl5TczkojzOLEqe+glzR6TgDp2hpKF s7M3yuAuokSrcMNz/DbBL866XfGlHPYzM4GLM7qjhKBB/Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; 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=1694799034; bh=KNH4vt728OoWOFOhLEgjH2tewDmhfQGA3P4PTo4OKF0=; 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=IGUgLG5iWu7s9N5ZkkRQ4bXQsMDTofM+yp5F8BMotcooeyxEewZstiU3h6jkEnQg3H2CBEDkg4 b80i0RCNYS/ASPC8S2pxqDDLhhorXFOtttYN/zVwk28IkECXhowX05mzaljeEQIDM/dDIKEHjL xky4GnM/rxp0Sd4qhGe5t0VSNuHI7m/a0EVdr9nBiQtQ2msjGZVJvQEGIsi+dEFvQaRhGZUlSX A6T4Cwh/FD8eVkBtJJuc9HNnNHsFw+9HZfuV7KlHchciGs1VRVbQhsaIffz2FNfJcxhf4GrCPU 2t4qnw/CcwtuxZAX5deIQLVvkzxlRVpE7bIZ4qt/wk96QA==; 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=Xrs5pXN3syUdWykn0nbBm/sxTOJvPLEHP1IyPCE3dqs=; b=grRpI0E9vk260bQ+iAX6ofYc0s UIK5PnhWVMQiQF2oIULL2w70jul5wsjxPHQFJc7qwBiJ1TC/vpy1W56cYk5WHgm/fzl4vBDUajted rPvWUU8cATP+U4VSZbdNteOgSbQkQyPnko1ga8nwTsG4mqsia9ykA7MEHws5Tqv6jvjG07Lf4loZZ KZ55u4CfeDGBUL3WlI6bQzW/bLG8NVy5DTtctDP49UVRV6SdRpyp8OqXjVbvCEC6j9OiuHhpRuJfO BGpYQmke1OjkHzPs1JozVHAeEnw2V0XwscIkWQCAVjov7N4ZFyehqqFaAIO8u4MuxIOln6FnvJC36 JdGGlpOg==; Received: by zero.zsh.org with local id 1qhCeH-000LQL-O3; Fri, 15 Sep 2023 17:30:33 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f54.google.com) smtp.remote-ip=209.85.167.54; 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-lf1-f54.google.com ([209.85.167.54]:59719) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qhCe2-000L7i-B9; Fri, 15 Sep 2023 17:30:18 +0000 Received: by mail-lf1-f54.google.com with SMTP id 2adb3069b0e04-502d9ce31cbso3925871e87.3 for ; Fri, 15 Sep 2023 10:30:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20230601.gappssmtp.com; s=20230601; t=1694799017; x=1695403817; 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=Xrs5pXN3syUdWykn0nbBm/sxTOJvPLEHP1IyPCE3dqs=; b=Qga6/7kTgXWvK/GHss5Iq5nlcUp3veNiaGTW4DUIouqkZvZbxcUX9CwhF8oqYBs+YT +JZTh+OfHGMjAEwetTANjum1sFr99fG6bCiv0QnOxB49JwCkkTi4VaHFBEFR1j0Lj30I DXAV17d0/4HoZ0MVcjz9gBsWhrN3Bpwii9BuIHQJN6inqAt9wD6pb4BKxOl0FXwmpZZL kRVstZ3fjYxQ7kGtR7HKAkNzqnkssuwYoEbGXhss6Mh3h9AIZKGcuVagbQdVnyWt+2HR i9jXIm4+4ifD7ziLoH/UuMnCc0Sp8RP6mWG4cd6iWJ0iHgIfBzB9CZp6pURu220sU7g1 sw+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694799017; x=1695403817; 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=Xrs5pXN3syUdWykn0nbBm/sxTOJvPLEHP1IyPCE3dqs=; b=DckwCMUECBuPQqptvKoKavyF3+lsguY1TboF9tn6Cxa2HjDTYB+2XejUPYOQ1XZpxj h8mcbUdfSSqtWnvlXanqWLYTGb0Xn5aGBA/mfRF2iaZZ/uJt523VuOm+DbxwBo5Zb7x0 uIwEYj3+DyglQlxu4VXvdx4CWkn7LEHw4Wc3oPT+OcweMcDHXRSEXB+4YKoE3DH05xw7 VbxXYF5gXXfJppC69KRtrWJsCIe7JPevUZeThgGrsmiguVWvtX5z3rntHLseJI81z5yR QMdDGW/tLHvZRkIKKxFb+r3nFECqq8vSq5Ey6cM8dpfwCHtUZFTDi161Z6mn0chG40Rq Ooog== X-Gm-Message-State: AOJu0YyhtrdE4FGUruW2PeOyKFs3Bv219OjYTGJEt7GVFO70mYJUPFEu cgDHePHjs7eHvoVhlnmTxqedPnsfoC3MCapixsZn1w== X-Google-Smtp-Source: AGHT+IEfR/L/K84ahjpaP5ijbP3xO5LEtS7zTiiHAmBmKDDS7EyWWc4fzAQHoZqJlPXWFqdo+xWl7PXSi0C7qsKwiLs= X-Received: by 2002:a05:6512:2828:b0:4fd:b7fb:c9fa with SMTP id cf40-20020a056512282800b004fdb7fbc9famr2215460lfb.42.1694799017305; Fri, 15 Sep 2023 10:30:17 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Fri, 15 Sep 2023 10:30:05 -0700 Message-ID: Subject: Re: Bug? Output not flushed? To: Mikael Magnusson Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 52148 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, Sep 15, 2023 at 10:05=E2=80=AFAM Mikael Magnusson wrote: > > I'm not sure if that diagnosis is correct, look at this: > % { print XXX; return 0; } >| /tmp/newfile; echo hello; print $( > ie, does the return just return from the whole statement? Hrm. I was trying to come up with an example that DID NOT depend on my ${ ... } nofork patch, but the semantics of return seem to make that impossible. If you have my full set of nofork patches installed: % set -vx % print IN ${ print NOFORK; return 0; } OUT >| /tmp/zshw44kFq { print NOFORK; return 0; ;} +Src/zsh:3> print NOFORK +Src/zsh:3> return 0 REPLY=3D"$( print IN OUT IN OUT The redirection has happened, the print has happened, and the assignment to REPLY has happened, but the file was empty when read. Unless something is actually aborting the $(...) ... will have to dig further. Thanks for the observation.