Top || Section Contents || Permuted Index
SavaJe OS 1.1.0

source(shell)


NAME

source — execute a shell script

SYNOPSIS

source file
. file

DESCRIPTION

Execute the shell commands in file . A synonym for source is dot (. ).

EXAMPLE

A common use of shell scripts is to set the shell variable base (where the system searches for classes), then run an application. For example, the following script

set base=http://chopin/MyApp.jar
MyApp

sets base to a JAR file served by chopin then runs the application. To run this script (assuming it is in the file setbase ),

lsh% source setbase

or, using the timesaving dot (. ) command,

lsh% . setbase

SEE ALSO

lsh(shell)
set(shell)


Dec. 13, 2001
Copyright © 2002 , SavaJe Technologies, Inc. All rights reserved.
Corrections, suggestions to: docs@savaje.com