scsh-users
[Top] [All Lists]

Question about (exit)

To: scsh-news@zurich.ai.mit.edu
Subject: Question about (exit)
From: Robert Morelli <morelli@math.utah.edu>
Date: Wed, 12 Jun 2002 23:49:02 -0600
Organization: Global Network Services - Remote Access Mail & News Services
I defined a function

(define fail
  (lambda (msg)
    (display msg)
    (exit 0)))

with the intention that calling
(fail msg)
will result in the message msg being written to
standard out and the process then terminating.
However,  what happens is that the process simply
terminates without msg being written.  Can someone
explain this?

Thanks

<Prev in Thread] Current Thread [Next in Thread>