From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Thu, 19 Feb 2009 11:38:10 -0500 Message-ID: <509071940902190838h20fb2ccep6d38317b13f713e6@mail.gmail.com> From: Anthony Sorace To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [9fans] rc for loop exiting from emu on Plan 9 Topicbox-Message-UUID: a3cfabea-ead4-11e9-9d60-3106f5b1d025 Trying to help diagnose a race condition in emu, I did this: for (i in `{seq 1 100}) {echo BEGIN RUN $i ; emu sh -c /usr/a/bin/sh/emuerr; echo END RUN $i ; echo} where emuerr is a sh.dis script that raises an exception. on OS X, using p9p's rc, i get a bunch of stanzas that look like: BEGIN RUN 4 start end start2 OOPS: fail:some error END RUN 4 except for the run number. running exactly the same command with the same script on Plan 9, rc gives up after the "OOPS" line. same behavior on native plan9 and 9vx. i'd expect the behavior seen on OS X. it's not the exception, either; i get the same behavior if i replace the entire rc for clause with {emu sh -c date}. what is rc confused about?