zsh-workers
 help / color / mirror / code / Atom feed
From: Jason L Tibbitts III <tibbs@math.uh.edu>
To: zsh-workers@zsh.org
Subject: Weird issue with pipeviewer and multiple pipes
Date: Tue, 03 May 2016 20:15:14 -0500	[thread overview]
Message-ID: <ufaa8k6ei8t.fsf@epithumia.math.uh.edu> (raw)

Someone brought this up on IRC; I thought I'd bring it to a larger
audience.  

Pipeviewer (pv) is a little program that sits in a pipeline, passes data
through, and outputs some progress information.
  http://www.ivarch.com/programs/pv.shtml
I didn't know about it until today, but it's kind of neat.  It's in most
distros/repositories/package managers/whatever.

Run this:
  echo 1 | pv -l -s $(echo 1)

Should give '1' and a progress bar.  Now tack on "|cat".  For me that
hangs.  ctrl-Z does nothing.  ctrl-C seems to do what I'd expect ctrl-Z
to do:

[2]  + 11459 done                    echo 1 |
       11461 suspended (tty output)  pv -l -s $(echo 1) |
       11462 interrupt               cat

If I type fg, the shell is pretty much hung.  You have to kill -9 the pv
process either way to get rid of the job.  (Lesser kills don't seem to
work.)

Could certainly be a bug in pv, but it's definitely weird and I'd just
dismiss it except that other shells seem to have no problems.

 - J<


             reply	other threads:[~2016-05-04  1:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-04  1:15 Jason L Tibbitts III [this message]
2016-05-04  3:56 ` Bart Schaefer
2016-05-05 15:14   ` Peter Stephenson
2016-05-05 15:26     ` Bart Schaefer
2016-05-06 21:35   ` Peter Stephenson
2016-05-06 21:55     ` Bart Schaefer

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=ufaa8k6ei8t.fsf@epithumia.math.uh.edu \
    --to=tibbs@math.uh.edu \
    --cc=zsh-workers@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).