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

Re: weird zsh problem with background procs and scripts



On Sunday 2006-08-13 08:34 +1000, Tyler Spivey output:
:If you put the following into a loop it won't work. Is there a
:workaround?
:#!/bin/zsh
:while :;do
:ed &
:jobs
:sleep 1
:done
:this should launch a bunch of eds int he background, but only seems to
:load one.

Works for me.  4.3.2-dev-1 on NetBSD.
Maybe your ed is exiting instead?

[3] 3050
[3]  + suspended (tty input)  ed
[3]  + suspended (tty input)  ed
[4] 8521
[4]  + suspended (tty input)  ed
[3]  - suspended (tty input)  ed
[4]  + suspended (tty input)  ed
[5] 29234
[5]  + suspended (tty input)  ed
[3]    suspended (tty input)  ed
[4]  - suspended (tty input)  ed
[5]  + suspended (tty input)  ed
...
and so on.

Regards,
Geoff



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