zsh-workers
 help / color / mirror / code / Atom feed
* Weird issue with pipeviewer and multiple pipes
@ 2016-05-04  1:15 Jason L Tibbitts III
  2016-05-04  3:56 ` Bart Schaefer
  0 siblings, 1 reply; 6+ messages in thread
From: Jason L Tibbitts III @ 2016-05-04  1:15 UTC (permalink / raw)
  To: zsh-workers

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<


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-06 21:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-04  1:15 Weird issue with pipeviewer and multiple pipes Jason L Tibbitts III
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

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).