.TH "slsh" "1" .SH "NAME" slsh \(em interperter for S-Lang scripts .SH "SYNOPSIS" .PP \fBslsh\fR [\fB-i \fIinit-file\fR\fP] [\fB-g\fP] [\fB-n\fP] [\fB-v\fP] [\fB\-\-help\fP] [\fB\-\-version\fP] [\-|\fIfile\fR \fIargs\fR] .SH "DESCRIPTION" .PP This manual page documents briefly the \fBslsh\fR command\&. This manual page was written for the \fBDebian\fP distribution because the original program does not have a manual page\&. .PP \fBslsh\fR is an interpreter for scripts written in the S-Lang language\&. .SH "OPTIONS" .IP "\fB\-\-help\fP" 10 Show summary of options .IP "\fB\-\-version\fP" 10 Show slsh version information .IP "\fB-g\fP" 10 Compile with debugging code, tracebacks, etc .IP "\fB-n\fP" 10 Don\&'t load personal init file .IP "\fB-i \fIinit-file\fR\fP" 10 Use this file instead of default .IP "\fB-v\fP" 10 Show verbose loading messages .SH "ENVIRONMENT VARIABLES" .PP Upon startup, the program will try to load \fBslsh\&.rc\fP as follows: .PP If either \fBSLSH_CONF_DIR\fP or \fBSLSH_LIB_DIR\fP environment variables exist, then look in the corresponding directories for \fBslsh\&.rc\fP\&. Otherwise look in: .IP "" 10 \fB$(prefix)/etc\fP (specified in \fBMakefile\fP) .IP "" 10 \fB/usr/local/etc/\fP .IP "" 10 \fB/usr/local/etc/slsh/\fP .IP "" 10 \fB/etc/\fP .IP "" 10 \fB/etc/slsh/\fP .PP The \fBslsh\&.rc\fP file may load other files from slsh\&'s library directory in the manner described below\&. .PP Once \fBslsh\&.rc\fP is loaded, slsh will load \fB$HOME/\&.slshrc\fP if present\&. Finally, it will load the script specified on the command line\&. If the name of the script is ``\fI-\fP'', then it will be read from stdin\&. .PP When a script loads a file via the built-in ``\fI\fBevalfile\fP\fP'' function or the ``\fI\fBrequire\fP\fP'' function (autoloaded by \fBslsh\&.rc\fP), the file is searched for along the \fBSLSH_PATH\fP as specified in the Makefile\&. An alternate path may be specified by the \fBSLSH_PATH\fP environment variable\&. .PP The search path may be queried and set during run time via set the \fBget_lib_path\fP and \fBset_lib_path\fP functions, e\&.g\&., .PP .nf set_lib_path ("/home/bill/lib/slsh:/usr/share/slsh"); .fi .PP .SH "SEE ALSO" .PP Examples of S-Lang scripts can be found in \fB/usr/share/doc/slsh/examples/\&.\fP .SH "AUTHOR" .PP This manual page was written by Rafael Laboissiere for the \fBDebian\fP system (but may be used by others)\&. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation\&. .PP On Debian systems, the complete text of the GNU General Public License can be found in \fB/usr/share/common-licenses/GPL\fP\&. .\" created by instant / docbook-to-man