guile.1 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. .\" Written by Robert Merkel (rgmerk@mira.net)
  2. .\" augmented by Rob Browning <rlb@cs.utexas.edu>
  3. .\" Process this file with
  4. .\" groff -man -Tascii foo.1
  5. .\"
  6. .\" title section date source manual
  7. .TH GUILE 1 "2017-05-22" GNU "GNU Guile 3.0"
  8. .
  9. .SH NAME
  10. guile \- The GNU Project Extension Language
  11. .
  12. .SH SYNOPSIS
  13. .B guile
  14. .RB [\| \-L
  15. .IR DIRECTORY \|]
  16. .RB [\| \-l
  17. .IR FILE \|]
  18. .RB [\| \-e
  19. .IR FUNCTION \|]
  20. .\".RI [\| \\\\ \|]
  21. .RB [\| \e \|]
  22. .RB [\| \-c
  23. .IR EXPR \|]
  24. .RB [\| \-s
  25. .IR SCRIPT \|]
  26. .RB [\| \-\- \|]
  27. .RI [\| SCRIPT
  28. .RI [\| ARGs\ for\ SCRIPT \|]\c
  29. .RI ]
  30. Only the most useful options are listed here;
  31. see below for the remainder.
  32. .
  33. .SH DESCRIPTION
  34. GNU Guile is an implementation of the Scheme programming language.
  35. It extends the R5RS and R6RS language standards,
  36. providing additional features necessary for real-world use.
  37. Guile works well for interactive use,
  38. basic scripting,
  39. and extension of larger applications,
  40. as well as for stand-alone Scheme application development.
  41. The
  42. .B guile
  43. executable itself provides a stand-alone interactive compiler and
  44. run-time for Scheme programs,
  45. both for interactive use and for executing Scheme scripts or programs.
  46. This manual page provides only brief instruction in invoking
  47. .B guile
  48. from the command line.
  49. Please consult the Guile info documentation for more information,
  50. (type \fB info "(guile)Invoking Guile"\fR at a command prompt).
  51. .
  52. .SH OPTIONS
  53. .TP
  54. .BI -L \ DIRECTORY
  55. Add \fIDIRECTORY\fR to the front of Guile's module load path.
  56. .
  57. .TP
  58. .BI -l \ FILE
  59. Load Scheme source code from \fIFILE\fR.
  60. .
  61. .TP
  62. .BI -e \ FUNCTION
  63. After reading \fISCRIPT\fR, apply \fIFUNCTION\fR to command-line arguments.
  64. Note that \fIFUNCTION\fR is evaluated,
  65. so, for example,
  66. .B (@ (my-module) my-proc)
  67. is valid here.
  68. .
  69. .TP
  70. .B \e
  71. The "meta switch", used to work around limitations in #! scripts.
  72. See "The Meta Switch" in the texinfo documentation for more details.
  73. .
  74. .TP
  75. .B --
  76. Stop argument processing, and start
  77. .B guile
  78. in interactive mode.
  79. .
  80. .TP
  81. .BI -c \ EXPR
  82. Stop argument processing,
  83. and evaluate \fIEXPR\fR as a Scheme expression.
  84. .
  85. .TP
  86. .BI -s \ SCRIPT-FILE
  87. Load Scheme source from \fISCRIPT-FILE\fR and execute as a script.
  88. Note that in many cases it is not necessary to use \fB-s\fR;
  89. one may invoke
  90. .B guile
  91. simply as
  92. .B guile
  93. .I SCRIPT-FILE ARG...
  94. .
  95. .TP
  96. .B -ds
  97. Carry out \fB\-s \fISCRIPT\fR at this point in the option sequence.
  98. Note that this argument must be used in conjunction with \fB\-s\fR.
  99. .
  100. .TP
  101. .B --debug
  102. Start
  103. .B guile
  104. with the debugging VM.
  105. By default, debugging is on when
  106. .B guile
  107. is invoked interactively;
  108. it is off otherwise.
  109. .
  110. .TP
  111. .B --no-debug
  112. Start
  113. .B guile
  114. without the debugging VM,
  115. even if
  116. .B guile
  117. is being run interactively.
  118. .
  119. .TP
  120. .B --auto-compile
  121. Compile source files automatically (default behavior).
  122. .
  123. .TP
  124. .B --no-auto-compile
  125. Disable automatic source file compilation.
  126. .
  127. .TP
  128. \fB\-\-listen\fR[=\fIP\fR]
  129. Listen on a port or socket for remote REPL connections.
  130. See the manual for more details.
  131. .
  132. .TP
  133. \fB\-\-use\-srfi\fR=\fIN,M\fR...
  134. Load SRFI extensions \fIN\fR, \fIM\fR, etc.
  135. For example,
  136. \fB \-\-use\-srfi\fR=\fI8,13\fR.
  137. .
  138. .TP
  139. .BI -x \ EXTENSION
  140. Add \fIEXTENSION\fR to the
  141. .B guile
  142. load extension list.
  143. .
  144. .TP
  145. \fB\-h\fR, \fB\-\-help\fR
  146. Describe command-line options and exit.
  147. .
  148. .TP
  149. \fB\-v\fR, \fB\-\-version\fR
  150. Display guile version and exit.
  151. .
  152. .TP
  153. .B -q
  154. In interactive mode,
  155. suppress loading the user's initialization file,
  156. .I ~/.guile.
  157. .
  158. .SH ENVIRONMENT
  159. .\".TP \w'MANROFFSEQ\ \ 'u
  160. .TP
  161. .B GUILE_LOAD_PATH
  162. If
  163. .RB $ GUILE_LOAD_PATH
  164. is set before
  165. .B guile
  166. is started,
  167. its value is used to augment the path to search for Scheme files when
  168. loading.
  169. It should be a colon-separated list of directories,
  170. which will be prefixed to the default
  171. .B %load-path.
  172. .TP
  173. .B GUILE_LOAD_COMPILED_PATH
  174. If
  175. .RB $ GUILE_LOAD_COMPILED_PATH
  176. is set before
  177. .B guile
  178. is started,
  179. its value is used to augment the path to search for compiled
  180. Scheme files (.go files) when loading.
  181. It should be a colon-separated list of directories,
  182. which will be prefixed to the default
  183. .B %load-compiled-path.
  184. .
  185. .SH FILES
  186. .TP
  187. .I ~/.guile
  188. A Guile script that is executed before any other processing occurs.
  189. For example, the following
  190. .I .guile
  191. activates guile's readline interface:
  192. .RS 9
  193. .B (use-modules (ice-9 readline))
  194. .RS 0
  195. .B (activate-readline)
  196. .
  197. .SH "SEE ALSO"
  198. The full documentation for Guile is maintained as a Texinfo manual.
  199. If the
  200. .B info
  201. and
  202. .B guile
  203. programs are properly installed at your site,
  204. the command
  205. .IP
  206. .B info guile
  207. .PP
  208. should give you access to the complete manual.
  209. http://www.schemers.org provides a general introduction to the
  210. Scheme language.
  211. .
  212. .SH "REPORTING BUGS"
  213. There is a mailing list,
  214. bug-guile@gnu.org,
  215. for reporting Guile bugs and fixes.
  216. But before reporting something as a bug,
  217. please try to be sure that it really is a bug,
  218. not a misunderstanding or a deliberate feature.
  219. We ask you to read the section ``Reporting Bugs'' in the Guile reference
  220. manual (or Info system) for hints on how and when to report bugs.
  221. Also, include the version number of the Guile you are running in every bug
  222. report that you send in.
  223. Bugs tend actually to get fixed if they can be isolated,
  224. so it is in your interest to report them in such a way that they can be
  225. easily reproduced.
  226. .
  227. .SH COPYING
  228. Copyright (C) 2010, 2011 Free Software Foundation, Inc.
  229. Permission is granted to make and distribute verbatim copies of this
  230. document provided the copyright notice and this permission notice are
  231. preserved on all copies.
  232. Permission is granted to copy and distribute modified versions of this
  233. document under the conditions for verbatim copying,
  234. provided that the entire resulting derived work is distributed under the
  235. terms of a permission notice identical to this one.
  236. Permission is granted to copy and distribute translations of this
  237. document into another language,
  238. under the above conditions for modified versions,
  239. except that this permission notice may be stated in a
  240. translation approved by the Free Software Foundation.
  241. .
  242. .SH AUTHORS
  243. Robert Merkel <rgmerk@mira.net> wrote this manpage.
  244. Rob Browning <rlb@cs.utexas.edu> has added to it.
  245. .B guile
  246. is GNU software.
  247. Guile is originally based on Aubrey Jaffer's SCM interpreter,
  248. and is the work of many individuals.