78 lines
3.2 KiB
HTML
78 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<!-- Created by GNU Texinfo 7.1, https://www.gnu.org/software/texinfo/ -->
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<!-- This manual documents Guile version 3.0.10.
|
|
|
|
Copyright (C) 1996-1997, 2000-2005, 2009-2023 Free Software Foundation,
|
|
Inc.
|
|
|
|
Copyright (C) 2021 Maxime Devos
|
|
|
|
Copyright (C) 2024 Tomas Volf
|
|
|
|
|
|
Permission is granted to copy, distribute and/or modify this document
|
|
under the terms of the GNU Free Documentation License, Version 1.3 or
|
|
any later version published by the Free Software Foundation; with no
|
|
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
|
|
copy of the license is included in the section entitled "GNU Free
|
|
Documentation License." -->
|
|
<title>Running Guile Scripts (Guile Reference Manual)</title>
|
|
|
|
<meta name="description" content="Running Guile Scripts (Guile Reference Manual)">
|
|
<meta name="keywords" content="Running Guile Scripts (Guile Reference Manual)">
|
|
<meta name="resource-type" content="document">
|
|
<meta name="distribution" content="global">
|
|
<meta name="Generator" content=".texi2any-real">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
|
|
<link href="index.html" rel="start" title="Top">
|
|
<link href="Concept-Index.html" rel="index" title="Concept Index">
|
|
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
|
|
<link href="Hello-Guile_0021.html" rel="up" title="Hello Guile!">
|
|
<link href="Linking-Guile-into-Programs.html" rel="next" title="Linking Guile into Programs">
|
|
<link href="Running-Guile-Interactively.html" rel="prev" title="Running Guile Interactively">
|
|
<style type="text/css">
|
|
<!--
|
|
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
|
|
div.example {margin-left: 3.2em}
|
|
span:hover a.copiable-link {visibility: visible}
|
|
-->
|
|
</style>
|
|
<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css">
|
|
|
|
|
|
</head>
|
|
|
|
<body lang="en">
|
|
<div class="section-level-extent" id="Running-Guile-Scripts">
|
|
<div class="nav-panel">
|
|
<p>
|
|
Next: <a href="Linking-Guile-into-Programs.html" accesskey="n" rel="next">Linking Guile into Programs</a>, Previous: <a href="Running-Guile-Interactively.html" accesskey="p" rel="prev">Running Guile Interactively</a>, Up: <a href="Hello-Guile_0021.html" accesskey="u" rel="up">Hello Guile!</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Concept-Index.html" title="Index" rel="index">Index</a>]</p>
|
|
</div>
|
|
<hr>
|
|
<h3 class="section subsection-level-set-section" id="Running-Guile-Scripts-1"><span>2.2 Running Guile Scripts<a class="copiable-link" href="#Running-Guile-Scripts-1"> ¶</a></span></h3>
|
|
|
|
<p>Like AWK, Perl, or any shell, Guile can interpret script files. A Guile
|
|
script is simply a file of Scheme code with some extra information at
|
|
the beginning which tells the operating system how to invoke Guile, and
|
|
then tells Guile how to handle the Scheme code.
|
|
</p>
|
|
<p>Here is a trivial Guile script. See <a class="xref" href="Guile-Scripting.html">Guile Scripting</a>, for more details.
|
|
</p>
|
|
<div class="example">
|
|
<pre class="example-preformatted">#!/usr/local/bin/guile -s
|
|
!#
|
|
(display "Hello, world!")
|
|
(newline)
|
|
</pre></div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</body>
|
|
</html>
|