OnWorks favicon

gosh - Online in the Cloud

Run gosh in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command gosh that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



gosh - a Scheme script interpreter


gosh [-biqV] [-I path ] [-A path ] [-u module ] [-l file ] [-e expr ] [-E expr ] [-f flag
] [--] [ script argument ... ]


Gosh is a stand-alone Scheme interpreter built on top of the Gauche Scheme script engine.

When script is given, gosh loads the script, evaluating Scheme code in it. Then, if the
script defines a procedure named main, gosh calls it with a single argument which is a
list of the script name and subsequent arguments. When main returns an integer value,
gosh exits with it as an exit code. If main returns non-integer value, or an error is
signaled during evaluation, gosh exits with exit code 70 (EX_SOFTWARE). See SRFI-22
(http://srfi.schemers.org/srfi-22/srfi-22.html) for details. If there's no main procedure
defined in the script, gosh exits with code 0 after loading the script file.

If no script file is given, gosh goes into an interactive mode. By default, gosh prompts
the user to enter a Scheme expression, read and evaluates it, then prints the result,
until EOF is read. If the standard input is not a terminal, however, gosh doesn't print a
prompt; it allows a user to use gosh as a filter program. This behavior can be controlled
by -i or -b option; see below.


Command line options are processed before loading the script file or entering the
interactive mode.

The options -I, -A, -u, -l, -L, -e and -E are processed in the order of appearance. For
example, adding a load path by -I option affects the -l options after it, but not the ones
before it.

-V Prints gosh version and exits.

-b Batch mode. Doesn't print prompt even the standard input is a terminal. Supersedes

-i Interactive mode. Forces to print prompt, even the standard input is not a terminal.

-q Prevents reading the default initialization file.

Adds path in front of the load path list.

Appends path to the tail of the load path list.

Loads and imports module, as if "(use module )" is specified in the code.

Loads a Scheme file file.

Like -l, but doesn't complain if file doesn't exist.

Evaluates a Scheme expression expr.

Same as -e, except that the expr is read as if it is surrounded by parenthesis.

Turns on the profiler. Currently type can only be 'time'.

Sets various flags.
case-fold uses case-insensitive reader (as in R5RS)
load-verbose report while loading files
no-inline don't inline primitive procedures and constants
(combined no-inline-globals, no-inline-locals, and
no-inline-globals don't inline global procedures.
no-inline-locals don't inline local procedures.
no-inline-constants don't inline constants.
no-post-inline-pass don't run post-inline optimization pass.

Makes feature available in cond-expand forms.

-- Specifies that there are no more options. If there are more arguments after this,
they are taken as script file name and its arguments.


A colon separated list of the load paths.
The paths are appended before the system default load paths.

A colon separated list of the load paths for dynamically loaded
objects. The paths are appended before the system default load paths.


Shiro Kawai (shiro @ acm . org)

Use gosh online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    Zephyr Project
    Zephyr Project
    The Zephyr Project is a new generation
    real-time operating system (RTOS) that
    supports multiple hardware
    architectures. It is based on a
    small-footprint kernel...
    Download Zephyr Project
  • 2
    SCons is a software construction tool
    that is a superior alternative to the
    classic "Make" build tool that
    we all know and love. SCons is
    implemented a...
    Download SCons
  • 3
    PSeInt is a pseudo-code interpreter for
    spanish-speaking programming students.
    Its main purpose is to be a tool for
    learning and understanding the basic
    Download PSeInt
  • 4
    oStorybook l'outil privil�gi� des
    �crivains. ATTENTION : voir sur
    --en_EN oStorybook the right tool for
    writers. WARNIN...
    Download oStorybook
  • 5
    Asuswrt-Merlin is a third party
    firmware for select Asus wireless
    routers. Based on the Asuswrt firmware
    developed by Asus, it brings tweaks, new
    features and ...
    Download Asuswrt-Merlin
  • 6
    Atom is a text editor that's
    modern, approachable and full-featured.
    It's also easily customizable- you
    can customize it to do anything and be
    able to ...
    Download Atom
  • More »

Linux commands