# slsh(1) - man - phpMan

[slsh(1)](https://www.chedong.com/phpMan.php/man/slsh/1/markdown)                                General Commands Manual                               [slsh(1)](https://www.chedong.com/phpMan.php/man/slsh/1/markdown)



## NAME
       slsh — interperter for S-Lang scripts

## SYNOPSIS
       **slsh** [**-i** _init-file]_  _[_**-g**_]_  _[_**-n**_]_  _[_**-v**_]_  _[_**--help**_]_  _[_**--version**_]_  _[-|file_ _args_]

## DESCRIPTION
       This manual page documents briefly the **slsh** command. This manual page was written for the **De**‐‐
       **bian** distribution because the original program does not have a manual page.

       **slsh** is an interpreter for scripts written in the S-Lang language.

## OPTIONS
       **--help**    Show summary of options

       **--version** Show slsh version information

### -g

### -n

### -i
                 Use this file instead of default

### -v

## ENVIRONMENT VARIABLES
       Upon startup, the program will try to load **slsh.rc** as follows:

       If either **SLSH**___**CONF**___**DIR** or **SLSH**___**LIB**___**DIR** environment variables exist, then look in the  corre‐
       sponding directories for **slsh.rc**. Otherwise look in:

                 **$(prefix)/etc** (specified in **Makefile**)

                 **/usr/local/etc/**

                 **/usr/local/etc/slsh/**

                 **/etc/**

                 **/etc/slsh/**


       The  **slsh.rc**  file may load other files from slsh's library directory in the manner described
       below.

       Once **slsh.rc** is loaded, slsh will load **$HOME/.slshrc** if present. Finally, it  will  load  the
       script  specified  on  the  command line. If the name of the script is ``_-_'', then it will be
       read from stdin.

       When a script loads a file via the built-in ``**evalfile''** **function** **or** **the** **``require''** **function**
       **(autoloaded**  **by**  **slsh.rc),**  **the**  **file** **is** **searched** **for** **along** **the** **SLSH**___**PATH** **as** **specified** **in** **the**
       **Makefile.** **An** **alternate** **path** **may** **be** **specified** **by** **the** **SLSH**___**PATH** **environment** **variable.**

       The search path may be queried  and  set  during  run  time  via  set  the  **get**___**lib**___**path**  and
       **set**___**lib**___**path** functions, e.g.,

       set_lib_path ("/home/bill/lib/slsh:/usr/share/slsh");


## SEE ALSO
       Examples of S-Lang scripts can be found in **/usr/share/doc/slsh/examples/.**

## AUTHOR
       This  manual page was written by Rafael Laboissiere <<rafael@debian.org>> for the **Debian** 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 pub‐
       lished by the Free Software Foundation.

       On Debian systems, the complete text of the GNU  General  Public  License  can  be  found  in
       **/usr/share/common-licenses/GPL**.



                                                                                             [slsh(1)](https://www.chedong.com/phpMan.php/man/slsh/1/markdown)
