stklos-script - Wrapper for running STklos code as scripts on Unix

DESCRIPTION

SRFI-22 (Running Scheme Scripts on Unix) recommends to invoke the Scheme script interpreter from the script via a /usr/bin/env trampoline, like this:

#!/usr/bin/env <executable>

where <executable> can recover several specified names. STklos uses only the name stklos-script for <executable>.

Here is an example of the classical echo command (without option) in Scheme:

#!/usr/bin/env stklos-script
(define (main arguments)
  (for-each (lambda (x) (display x) (display #\space))
            (cdr arguments))
  (newline)
  0)

SEE ALSO

stklos(1) stklos-compile(1)


Markup created by unroff 1.0sc,    March 04, 2023.