zsh-users
 help / color / mirror / code / Atom feed
From: Anssi Saari <as@sci.fi>
To: zsh-users@sunsite.dk
Subject: Re: weird zsh problem with background procs and scripts
Date: Mon, 14 Aug 2006 00:45:33 +0300	[thread overview]
Message-ID: <20060813214532.GA4959@sci.fi> (raw)
In-Reply-To: <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.


  reply	other threads:[~2006-08-13 21:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-12 22:35 Tyler Spivey
2006-08-13 21:45 ` Anssi Saari [this message]
2006-08-13 21:53 ` Bart Schaefer
2006-08-14  2:39 ` Geoff Wing

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060813214532.GA4959@sci.fi \
    --to=as@sci.fi \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).