9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Sorace <anothy@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] rc for loop exiting from emu on Plan 9
Date: Thu, 19 Feb 2009 11:38:10 -0500	[thread overview]
Message-ID: <509071940902190838h20fb2ccep6d38317b13f713e6@mail.gmail.com> (raw)

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?



             reply	other threads:[~2009-02-19 16:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-19 16:38 Anthony Sorace [this message]
2009-02-19 17:15 ` erik quanstrom
2009-02-19 17:30 ` roger peppe

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=509071940902190838h20fb2ccep6d38317b13f713e6@mail.gmail.com \
    --to=anothy@gmail.com \
    --cc=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).