Hi, while investigating
using GNU APL for scripting (--script), I have two questions:
1) Is there a way to
specify an exit code in APL scripts? I didn't see any ⎕FIO or
system call interface to invoke the host OS exit() with a code
other than the implied 0 code in GNU APL's source function
Code_OFF() function;
2) Is it intentional
that there is a behavioural difference with GNU APL when
configured with the CORE_COUNT_WANTED= environment variable
set explicitly:
$ make clean
$ CORE_COUNT_WANTED=4
./configure && make -j
...
$ src/apl -q
)OFF
Killed
$ echo $?
137
versus
$ make clean
$ ./configure
&& make -j
...
$ src/apl -q
)OFF
$ echo $?
0
Also running without
the -q flag, )OFF prints the 'Goodbye' and 'Session Duration'
information upon exit when CORE_COUNT_WANTED= is not set, and
just 'Killed' when it is.
I don't know if this is
symptomatic of anything but thought it might be worth
mentioning, in case this is a bug?
-Russ