zsh-workers
 help / color / mirror / code / Atom feed
* `jobs' builtin does not work with pipe in scripts
@ 2010-11-25 20:41 ZyX
  2010-11-25 20:57 ` Marc Weber
  0 siblings, 1 reply; 9+ messages in thread
From: ZyX @ 2010-11-25 20:41 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 500 bytes --]

Compare the following two commands:
    sleep 1s & sleep 1s & jobs -p | while read line ; do echo $line ; done
and
    zsh -c 'sleep 1s & sleep 1s & jobs -p | while read line ; do echo $line ; done'
. First command (in interactive shell) works just fine and prints output of 
`jobs'. Second command prints nothing, while `jobs -p' without pipe works just 
fine (but is useless for me). How can this be fixed?

zsh-4.3.10-r2 (USE: doc, examples, gdbm, maildir, pcre, unicode), gentoo, amd64.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

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

end of thread, other threads:[~2010-11-28  3:27 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-25 20:41 `jobs' builtin does not work with pipe in scripts ZyX
2010-11-25 20:57 ` Marc Weber
2010-11-25 21:40   ` ZyX
2010-11-25 23:56     ` Marc Weber
2010-11-26  4:38       ` ZyX
2010-11-26 17:47         ` Bart Schaefer
2010-11-26 18:16           ` ZyX
2010-11-28  1:37             ` Bart Schaefer
2010-11-28  3:26               ` ZyX

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