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

Re: weird zsh problem with background procs and scripts



On Sat, Aug 12, 2006 at 03:35:15PM -0700, Tyler Spivey wrote:
> 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.
> zsh -x shows that it's not even taking the &.

Do you really want to launch a bunch of eds or is there something else
you're trying to accomplish? Ed happens to quit immediately when started
like that, so the script doesn't do much. You can for example start a
bunch of sleeps with that.



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