Shell Environment Variables/en: Unterschied zwischen den Versionen
Cg (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „== Shell Environment Variables == A number of shell environment variables are used (if present) by expecco and/or the underlying Smalltalk runtime system. The…“) |
Cg (Diskussion | Beiträge) |
||
Zeile 18: | Zeile 18: | ||
If no script interpreter was defined in the settings dialog, fallbacks can be provided by the following shell variables: |
If no script interpreter was defined in the settings dialog, fallbacks can be provided by the following shell variables: |
||
* CMD_SHELL (batch scripts; defaults to "cmd") |
* '''CMD_SHELL''' (batch scripts; defaults to "cmd") |
||
* SHELL (shell commands and shell scripts; defaults to "bash" or "sh", whichever is found) |
* '''SHELL''' (shell commands and shell scripts; defaults to "bash" or "sh", whichever is found) |
||
* GNUPLOT_SHELL (gnuplot scripts; defaults to "gnuplot") |
* '''GNUPLOT_SHELL''' (gnuplot scripts; defaults to "gnuplot") |
||
* NODEJS_SHELL (node.js scripts; defaults to "node") |
* '''NODEJS_SHELL''' (node.js scripts; defaults to "node") |
||
* PERL_SHELL (perl scripts; defaults to "perl") |
* '''PERL_SHELL''' (perl scripts; defaults to "perl") |
||
* POWERSHELL (powershell scripts; defaults to "powershell" or "pwsh", whichever is found) |
* '''POWERSHELL''' (powershell scripts; defaults to "powershell" or "pwsh", whichever is found) |
||
* PYTHON_SHELL (python scripts; defaults to "python") |
* '''PYTHON_SHELL''' (python scripts; defaults to "python") |
||
* RSCRIPT_SHELL ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux) |
* '''RSCRIPT_SHELL''' ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux) |
||
* RUBY_SHELL (ruby scripts; defaults to "ruby") |
* '''RUBY_SHELL''' (ruby scripts; defaults to "ruby") |
||
* TCL_SHELL (tcl scripts; defaults to "tclsh") |
* '''TCL_SHELL''' (tcl scripts; defaults to "tclsh") |
||
Version vom 31. Mai 2018, 10:39 Uhr
Shell Environment Variables[Bearbeiten]
A number of shell environment variables are used (if present) by expecco and/or the underlying Smalltalk runtime system. Their existance is not a prerequisite to run expecco: default values will be used, if those variables are not present.
Temporary Files Folder[Bearbeiten]
Expecco (and Smalltalk) may create temporary files, which may outlive your session, in case of an abnormal termination (or in case a suite fails to cleanup temporary files correctly).
By default, temporary files are created inside a per-session temporary folder. This per-session temporary folder is named "stx_tmp_xxxx" and is created in the tempdir folder. The tempdir folder is specified by any of: STX_TMPDIR, TMP_DIR, TEMP_DIR, TMPDIR or TEMPDIR, whichever is found in the shell environment. If none of the above is found in the shell environment, "/tmp" is used as tempdir.
All per-session temporary files are created in this one temporary folder, to make it easier to cleanup leftover session files. Actually, if no expecco/Smalltalk is running, all temporary files folders named "stx_tmp_xxx" can be removed without danger (although temp-file cleanup is typically done automatically by the operating system in regular intervals)
Script Interpreters for External Language Scripts[Bearbeiten]
If no script interpreter was defined in the settings dialog, fallbacks can be provided by the following shell variables:
- CMD_SHELL (batch scripts; defaults to "cmd")
- SHELL (shell commands and shell scripts; defaults to "bash" or "sh", whichever is found)
- GNUPLOT_SHELL (gnuplot scripts; defaults to "gnuplot")
- NODEJS_SHELL (node.js scripts; defaults to "node")
- PERL_SHELL (perl scripts; defaults to "perl")
- POWERSHELL (powershell scripts; defaults to "powershell" or "pwsh", whichever is found)
- PYTHON_SHELL (python scripts; defaults to "python")
- RSCRIPT_SHELL ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux)
- RUBY_SHELL (ruby scripts; defaults to "ruby")
- TCL_SHELL (tcl scripts; defaults to "tclsh")
PYTHON_SHELL,