From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id b06e9097 for ; Mon, 2 Sep 2019 14:37:15 +0000 (UTC) Received: (qmail 2708 invoked by alias); 2 Sep 2019 14:37:08 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24197 Received: (qmail 10397 invoked by uid 1010); 2 Sep 2019 14:37:08 -0000 X-Qmail-Scanner-Diagnostics: from mail-lj1-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25559. spamassassin: 3.4.2. Clear:RC:0(209.85.208.177):SA:0(-2.0/5.0):. Processed in 2.826449 secs); 02 Sep 2019 14:37:08 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.208.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=hn81ZaFoh0g/tmrhRCpLRDBYjABDVzrHm/EWUVtFlb4=; b=XhjxDpG11kFlQadhFXA+v8tvRN3676oE7idRwhVRKPPYYIOFyCniPOg2zus+WvbxGb qDWundwfkSHrZOxsttUUjUj41obbZtIdmuIEJKNT+PJN8OOBYjrEoV+L5J2uvetcZ9Uu nt1+92o4psgbIX4RvIY+lDcx+jWkUUoYCCXbbdMgl5j0oeDBAlcvl2x4CxKzGTqyUxHF jbVmIXZ6cZwOJB7KVMjZWMzXX4rQU2gyMiSX2z2JJCrtvcdYJ0qcuKgEemaOsDY02vXh tdQV6AbA8z7qnOhqzhZU/QEgtRU2HpgDje2nOqNpH2ISZzUBsxzD1OmjVMJv+1FcRNP5 Wmmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=hn81ZaFoh0g/tmrhRCpLRDBYjABDVzrHm/EWUVtFlb4=; b=P+X4MTzOa6ZXSe02iZpOHKeSrw56Y3F/8G7zC1L8fhx2h4YlgSPBR7OTXTwKEOLFg4 AxC87mCBj5iUp8rQbClS7f01cpDcxu6+zrnySm4zJQlxJN42TaMERnA93yjKngBkSOFV URDPh1zlI/pmPl6nH0QS16YPLdMObkQ6PCThNebRDLsgDhX5YOiDuuWqDlEDjLk3KJ63 0O74l2+GJefwvze2xGwmM7I1yN3I5T1C0bYYchUAz5ZprBHxhcRvlqGpgOWjnu31ittl Ea+aBnWacApjM+POhfyPkbUuhTdZvPX0wMEZHFFKFz8MgWIuduNkk7Yl+xiEakiFHqIh HX5Q== X-Gm-Message-State: APjAAAXlp2XygZd/q6O2cQ18nWQq+LxB5lnPhA705uWO9KV9fmYW56wx TX+WjAl/ugMUMN0S/rHkYbeGg8lcIov9thaco14= X-Google-Smtp-Source: APXvYqzk1CuLVVUiPMHoRQDAsMyMyxIHp2Ich0xMUJ6KVuwTkuvSJ4zqvxqyVyXoFHMMisOVDebSsxbd5g4OACh2Lbg= X-Received: by 2002:a2e:90c6:: with SMTP id o6mr6695886ljg.144.1567434991138; Mon, 02 Sep 2019 07:36:31 -0700 (PDT) MIME-Version: 1.0 References: <3A161CB3-442A-4E0B-9A0E-1C62A72DF6DB@icloud.com> In-Reply-To: <3A161CB3-442A-4E0B-9A0E-1C62A72DF6DB@icloud.com> From: Roman Perepelitsa Date: Mon, 2 Sep 2019 16:36:20 +0200 Message-ID: Subject: Re: Weird behavior with redirecting stdin To: Aryn Starr Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Sep 2, 2019 at 3:59 PM Aryn Starr wrote= : > Then running `fcm | teec` hangs (after printing `hi`) and doesn=E2=80=99t= even get interrupted with ^D or ^C. > I don=E2=80=99t understand why these problems occur at all, and I have no= idea how to go about fixing them ... I don't know what's going on but here's a simplified test case that hangs: echo | fzf | { /bin/true; : "$(cat)" } This also hangs: fzf | { /bin/true; : "$(cat)" } I think this might be caused by fzf getting suspended when it tries to write to the terminal. I'm just speculating though. Roman.