| To: | Olin Shivers <shivers@ai.mit.edu>, "Brian D. Carlstrom" <bdc@ai.mit.edu> |
|---|---|
| Subject: | [0.4.2] (exit) within run efp problem? |
| From: | glenn@mathcs.emory.edu (Glenn Barry) |
| Date: | Fri, 8 Dec 1995 23:55:04 -0500 |
| Cc: | SCSH List <scsh@martigny.ai.mit.edu> |
| Organization: | Emory University, Dept of Math and CS |
| Reply-to: | glenn@mathcs.emory.edu (Glenn Barry) |
O&B,
It's natural to want to intersperse unix cmds with scheme code
within the run epf and '|' pf (as in the example of page 20 in
the manual).
But I noticed that if you put a (exit) call in the scheme code within
the run epf and '|' pf, it does not exit like one would expect.
Here's a simple example to demo:
glenn@drella:pts/13% cat exit-via-run.scm ~/src/scheme/scsh/
(define (do-it)
(begin (display "in do-it\n")
(exit 55)))
(run (begin (do-it)))
(display "after run\n")
(exit 66)
glenn@drella:pts/13% scsh -s exit-via-run.scm ~/src/scheme/scsh/
in do-it
after run
glenn@drella:pts/13% echo $? ~/src/scheme/scsh/
66
Should that not exit in (do-it) with exit value 55?
thx,
glenn
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [0.4.2] run epf error return values buglet?, Glenn Barry |
|---|---|
| Next by Date: | BSDi port?, Arun Welch |
| Previous by Thread: | [shivers@ai.mit.edu: Re: [0.4.2] run epf error return values buglet?], Brian D . Carlstrom |
| Next by Thread: | BSDi port?, Arun Welch |
| Indexes: | [Date] [Thread] [Top] [All Lists] |