[Larceny-users] no exit status?

Jon Wells jon at bigbang.com.au
Sat Feb 27 23:55:25 EST 2016


G'day,
   I don't seem to be able to get larceny to return a status to the OS...

Off the shelf, linux binary...

> jon at e 65% larceny -r7rs
> Larceny v0.98 "General Ripper" (Mar  7 2015 01:06:26, precise:Linux:unified)
> larceny.heap, built on Sat Mar  7 01:06:50 EST 2015
>
>> (import (primitives exit))
>
>> (exit 42)
> jon at e 66% echo $status
> 0

Doesn't seem to matter which byte I put the status in...

>> (exit (* 256 256 256 42))
> jon at e 72% echo $status
> 0

Or whether or not it's in R7 mode.

jon.



More information about the Larceny-users mailing list