Reply to message «Re: `jobs' builtin does not work with pipe in scripts», sent 23:57:53 26 November 2010, Friday by Marc Weber: > Excerpts from ZyX's message of Thu Nov 25 21:41:43 +0100 2010: > > zsh -c 'sleep 1s & sleep 1s & jobs -p | while read line ; do echo > > $line ; done' > > What about zsh -i -c ' ... ? It works, but I was trying to use `jobs -p | ...' in a script that is intended to be used as library, so I can't put something like `#!/bin/zsh -i' there. For now it was replaced with `ps --ppid $$', though I do not like invoking additional process in a signal handler.