zsh-users
 help / color / mirror / code / Atom feed
From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Aryn Starr <whereislelouch@icloud.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Weird behavior with redirecting stdin
Date: Mon, 2 Sep 2019 16:36:20 +0200	[thread overview]
Message-ID: <CAN=4vMqOUntDBzZ94s2+jG9dO21uhvsXoCP+FJgwpoLroZ1UKQ@mail.gmail.com> (raw)
In-Reply-To: <3A161CB3-442A-4E0B-9A0E-1C62A72DF6DB@icloud.com>

On Mon, Sep 2, 2019 at 3:59 PM Aryn Starr <whereislelouch@icloud.com> wrote:
> Then running `fcm | teec` hangs (after printing `hi`) and doesn’t even get interrupted with ^D or ^C.
> I don’t 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.

      parent reply	other threads:[~2019-09-02 14:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-02 13:58 Aryn Starr
2019-09-02 14:00 ` Pier Paolo Grassi
2019-09-02 14:36 ` Roman Perepelitsa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN=4vMqOUntDBzZ94s2+jG9dO21uhvsXoCP+FJgwpoLroZ1UKQ@mail.gmail.com' \
    --to=roman.perepelitsa@gmail.com \
    --cc=whereislelouch@icloud.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).