Warning: This is the manual of the legacy Guile 2.0 series. You may want to read the manual of the current stable series instead.
Next: The Meta Switch, Up: Guile Scripting [Contents][Index]
The first line of a Guile script must tell the operating system to use Guile to evaluate the script, and then tell Guile how to go about doing that. Here is the simplest case:
The operating system interprets this to mean that the rest of the line is the name of an executable that can interpret the script. Guile, however, interprets these characters as the beginning of a multi-line comment, terminated by the characters ‘!#’ on a line by themselves. (This is an extension to the syntax described in R5RS, added to support shell scripts.)
coding: utf-8
should appear in a comment
somewhere in the first five lines of the file: see Character Encoding of Source Files.
Guile reads the program, evaluating expressions in the order that they appear. Upon reaching the end of the file, Guile exits.
Next: The Meta Switch, Up: Guile Scripting [Contents][Index]