9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Amos Shapir amos@CS.HUJI.AC.IL
Subject: Bug in rc
Date: Wed,  1 Mar 1995 08:16:34 -0500	[thread overview]
Message-ID: <19950301131634.rMdy1suOqVSs19D1Q5pMXk_SZCrfrGTdLK9E3lXcl4I@z> (raw)

Try the following:

#!/bin/rc
for (iter in 1 2 3 4 5) {
	echo $iter
	sleep 5 &
	wait
}

Somehow, the "wait" botches the "for"'s argument list.
--
Amos Shapir		Net: amos@cs.huji.ac.il
Paper: The Hebrew Univ. of Jerusalem, Dept. of Comp. Science.
       Givat-Ram, Jerusalem 91904, Israel
Tel: +972 2 585706,586950        GEO: 35 11 46 E / 31 46 21 N






                 reply	other threads:[~1995-03-01 13:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=19950301131634.rMdy1suOqVSs19D1Q5pMXk_SZCrfrGTdLK9E3lXcl4I@z \
    --to=9fans@9fans.net \
    /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.
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).