hyln9 / ikarus

Optimizing incremental native-code compiler for R6RS scheme. This is a forked repository.
https://launchpad.net/ikarus
Other
5 stars 0 forks source link

`system' return code not (portably) interpretable #249

Open hyln9 opened 10 years ago

hyln9 commented 10 years ago

The integer returned by the 'system' procedure is not (portably) interpretable by Scheme code (in C it as to be destructured by the WIFEXITED() macro & co.):

Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1746, build 2009-03-01)
Copyright (c) 2006-2008 Abdulaziz Ghuloum

> (system "exit 1")
256 

As there is already code to interpret that integer for implementing wstatus-exit-code' andwstatus-received-signal', this functionality should probably refactored to expose a procedure to destructure the return value of `system' as well.

Launchpad Details: #LP349210 Andreas Rottmann - 2009-03-26 18:12:50 -0400