Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: `jobs' builtin does not work with pipe in scripts



ZyX,

I think you should provide more context. Its almost impossible to try to
find a workaround. Eg you could use /bin/sh

/bin/sh -c 'sleep 1s & sleep 1s & jobs | cat ' | while read .. ?

Anyway you seem to have found something which works for you.

Marc Weber



Messages sorted by: Reverse Date, Date, Thread, Author