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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27523 invoked from network); 25 May 2023 19:28:48 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 May 2023 19:28:48 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1685042928; b=drjSs1HJ1isvCquwfXMsyaaEhN6kg8O9U1/r/NptQ7FirfZebGiCnz+XEpgufD0zrOkRlxIEuW xzRrcO+24gJrO9xug6UmLi1dM12cqK2MsBbEFEHBbGXTDxqy8OPn8UUmrYn01ojmflbDL8Ryn1 ia6YZCfFJ3HNzLIhoDRpQ/flyW7/tdKlO4HHeJ6N2f8Bkxj2xUAlTVQlRQ+bh4BbxqGk/ANXUR Xja2gxVy5D8CDX0KtBT8+3etVoQ8qSHLyiWB/yMVSmu7d5XAFeNp0Mtg5wbG/ZBt6+mgEz2kJ+ qNlcx/MeciOESrvmupRIkjxjP+LCctX4yJjUpKqNO5K4lg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f44.google.com) smtp.remote-ip=209.85.167.44; dkim=pass header.d=gmail.com header.s=20221208 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=1685042928; bh=NWlqgyV6ZKircrgJR/CxNm72arlh0ycJTPwgywGzqBU=; 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=L+W7WuXE0BTb8DRT2Wbwo/q/kjuJw0jOfVTvH/SL12b2CIHtewoYr4Hg8ZptzEZoL+rSAyIGbz lKy8h0cNSS75hk3Mxw2vKEoDEaG7PdMgQ2CCHhtqoS6HEpBd7xawLZufy+sVoJaO/Ocy/FhR7l HWyklvN1xxCP66LyWMkS/+dGXOzpQMmThRlWj34AGC2sVx2ZT46oL4404Xnnk+cOQTfLns3SDc Bc4HwoxPBQY6a3KNXSeQBKSCthKLVSrKTh19GcXDXmlhzV20g0bavrmDnDUv3GPk8fe4c9POpV EYmqTiFV7TvLuikM3oge3Oq3ZBva2c/UQfPqbD2aDxJydw==; 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=NWlqgyV6ZKircrgJR/CxNm72arlh0ycJTPwgywGzqBU=; b=McNbDgKcebGF8aePRcTKqDsTw0 wd42ybrjgQVCHhhYlWXm9C6srGUhRf6f7L0mY1xdubPGBGp0Wcg1fNJvSrow/iiZ3vTrv+nogB5c7 LgIc4d2/1uKBKzDB8/eK8Yx/32fKG7sV35GoqotrfaG+ogoFb69CcUiGvQpoELRTCdkQ7Qu5i2on7 uqj77IbpGX3cgkJgauNYQ7H0IXQgPOwoZYCldLNQBd5TzO2VHJImJHr365qhyz9DxNyG7JihedjY/ +XagR/2xsJflujzQzhOIMliaz6GTdmWdXeOCZNgJlysd3YudrOxjoSoCX8rkJgAEkEwDy9PqlRx5v s1WiqUbQ==; Received: by zero.zsh.org with local id 1q2Gdj-00093Y-PF; Thu, 25 May 2023 19:28:47 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f44.google.com) smtp.remote-ip=209.85.167.44; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f44.google.com ([209.85.167.44]:50607) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1q2GdW-0008jN-80; Thu, 25 May 2023 19:28:36 +0000 Received: by mail-lf1-f44.google.com with SMTP id 2adb3069b0e04-4f3baf04f0cso2860326e87.1 for ; Thu, 25 May 2023 12:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685042913; x=1687634913; 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=NWlqgyV6ZKircrgJR/CxNm72arlh0ycJTPwgywGzqBU=; b=O7/WrTRiHeOsQe/cobuZzUbu+HCXbFdK6WjniyuJioKGoQSQjaQZYbbbegB4CKTAZI Rb3ld2wzPRoBrJF+SQuiKBZbqj0CPiXzzqfbLN0wC+9XDqzsrTGABV3u+VW1dPWMIbnj t6nhvOC6A+j18cUf54WxFukt6DFg0yvqXIjgD50OCldw3QjExaUoHqVglywAPw8jbSj5 APftXNpHRDbnOIZpW26q4drSXNKvGNJ00AAIvwIhPNO0taMxs0jQQFVp0WJinecbYpsk utRx4avbCJshRoaXdwlBVqq3F62WPp8ADqH/N3ZAvCeKL+p8QIFMAqVsXnRiuhKShEEC hspA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685042913; x=1687634913; 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=NWlqgyV6ZKircrgJR/CxNm72arlh0ycJTPwgywGzqBU=; b=izFFFlyeyRkVhYrm/1wZTN5tc1KxQpFxDzVJwTGZXTOV2Dh7IaBN16pZIiOr97i2wy wyFn5/vxHfk5O/CVuemAb9qSIo2uVZ7PRzkUIIAFvDXQTSdDBL+WK8BdSZJQsTA9SXjp 1bJG6E/yA9fxJFl5o2bw/JdPUPnEoOhoqS0fBYtogIempIpDr+BfmPxlBSFX+dS+Uaje nMqc2/ZX5iTrbnqoJ6vm1GlfzUv+ORtDCKwnjUWAVsB5oV/i/cMwV8yLM0adfK9VzSTh GNYOjoPBQkrkqXe+jDGNafORoNanKsrxE7T3N1w9heCymDG4kRaEmvYk+ox+uBdk9gQX R+Qw== X-Gm-Message-State: AC+VfDz2LZmxnc1e5Xp+VS+i868qwIfXolYvpCgKp6GSwHivq6KIYpOX IFon0AG/9VsWaSKuGYwVNVIBy7SjEAoq2AcwZqql3nXb X-Google-Smtp-Source: ACHHUZ7sg26JPea6VNZzLPxpFjg8vLToOSym/jNPah3NVOQP5Q5ui8FS84XTeFB5E8BbEoQ8nC+4a7ZcG9Kn0ToWF90= X-Received: by 2002:a05:651c:144:b0:2af:2986:44f4 with SMTP id c4-20020a05651c014400b002af298644f4mr1066201ljd.50.1685042913315; Thu, 25 May 2023 12:28:33 -0700 (PDT) MIME-Version: 1.0 References: <1297534493.4668003.1685024167868@mail.virginmedia.com> In-Reply-To: From: Sebastian Gniazdowski Date: Thu, 25 May 2023 19:28:06 +0000 Message-ID: Subject: Re: stdbuf -o0 -i0 via a Zsh native interface? To: Bart Schaefer Cc: Peter Stephenson , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51790 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: Ahso, that's why stdbuf uses ld-preload-like tricks to enforce the buffer size=E2=80=A6 That makes me look more tolerant to your STTY-way approach, i.e.: I suspect that ld-tricks are out of reach and I would accept even STTY-like solution if only it would be implemented=E2=80=A6 On Thu, 25 May 2023 at 19:09, Bart Schaefer wro= te: > > On Thu, May 25, 2023 at 12:02=E2=80=AFPM Sebastian Gniazdowski > wrote: > > > > I think that it does solve the problem, if the buffer settings are > > applied to external commands. I would say that they are, but your > > answer gives doubts=E2=80=A6 are they applied? > > Once you fork/exec, the initialization of stdio buffers etc. is all > redone inside the new process, as far as I know. --=20 Best regards, Sebastian Gniazdowski