scsh-users
[Top] [All Lists]

Re: scsh exit value

To: RT Happe <rthappe@mathematik.uni-freiburg.de>
Subject: Re: scsh exit value
From: Martin Gasbichler <gasbichl@informatik.uni-tuebingen.de>
Date: Thu, 14 Feb 2002 18:52:40 +0100
Cc: <scsh-bugs@zurich.ai.mit.edu>
Sender: gasbichl@informatik.uni-tuebingen.de
>>>>> "RT" == RT Happe <rthappe@mathematik.uni-freiburg.de> writes:

RT> scsh-0.6.0 (on a Linux PC) doesn't behave according to the RM
RT> section 11.1.7, man-Z-H-12.html#%_sec_11.1.7 : it *does* return the value
RT> of the top level computation as exit code.  E.g. ``scsh -c 0'' succeeds,
RT> ``scsh -c 144'' dies shamefully: error 144.  Accordingly for -e.
RT>   (That means that scsh programs that shall not look bad when called by
RT> the make utility have to exit(0) explicitely.)

This has been fixed in CVS about three weeks ago. Here is the patch:

Index: top.scm
===================================================================
RCS file: /cvsroot/scsh/scsh-0.6/scsh/top.scm,v
retrieving revision 1.20
retrieving revision 1.21
diff -r1.20 -r1.21
359c359
<                   (scheme-exit-now result)))
---
>                   (scheme-exit-now 0)))
365c365
<                   (scheme-exit-now result)))
---
>                   (scheme-exit-now 0)))


-- 
Martin

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