9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Bug in rc
@ 1995-03-01 13:16 Amos
  0 siblings, 0 replies; only message in thread
From: Amos @ 1995-03-01 13:16 UTC (permalink / 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






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-03-01 13:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-03-01 13:16 Bug in rc Amos

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).