Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: weird zsh problem with background procs and scripts
- X-seq: zsh-users 10599
- From: Anssi Saari <as@xxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: weird zsh problem with background procs and scripts
- Date: Mon, 14 Aug 2006 00:45:33 +0300
- In-reply-to: <20060812223515.GA9470@fast>
- Mail-followup-to: Anssi Saari <as@xxxxxx>, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060812223515.GA9470@fast>
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