Shell Environment Variables/en: Unterschied zwischen den Versionen

Aus expecco Wiki (Version 25.x)
Zur Navigation springen Zur Suche springen
Inhalt gelöscht Inhalt hinzugefügt
Zeile 26: Zeile 26:
* '''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")
* '''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)
* '''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")
* '''RUBY_SHELL''' (ruby scripts; defaults to "ruby")
* '''PYTHON_SHELL''' (python scripts; defaults to "python")
* '''PERL_SHELL''' (perl scripts; defaults to "perl")
* '''TCL_SHELL''' (tcl scripts; defaults to "tclsh")
* '''TCL_SHELL''' (tcl scripts; defaults to "tclsh")
* '''NODEJS_SHELL''' (node.js scripts; defaults to "node")
* '''GO_SHELL''' (go scripts; defaults to "go")
* '''GNUPLOT_SHELL''' (gnuplot scripts; defaults to "gnuplot")
* '''RSCRIPT_SHELL''' ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux)

Version vom 14. Juni 2018, 16:28 Uhr

Shell Environment Variables

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

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" (where xxxx is a session/process-ID) 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 file 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)

The name of the temporary folder can be retrieved by evaluating and printing:

Filename tempDirectory

(doing a "printIt" in a Smalltalk workspace), or via a corresponding action block in the standardlibrary.

Script Interpreters for External Language Scripts

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)
  • POWERSHELL (powershell scripts; defaults to "powershell" or "pwsh", whichever is found)
  • RUBY_SHELL (ruby scripts; defaults to "ruby")
  • PYTHON_SHELL (python scripts; defaults to "python")
  • PERL_SHELL (perl scripts; defaults to "perl")
  • TCL_SHELL (tcl scripts; defaults to "tclsh")
  • NODEJS_SHELL (node.js scripts; defaults to "node")
  • GO_SHELL (go scripts; defaults to "go")
  • GNUPLOT_SHELL (gnuplot scripts; defaults to "gnuplot")
  • RSCRIPT_SHELL ('R' scripts; defaults to "R.exe" on Windows, "r" on OSX, "R" on Unix/Linux)



Copyright © 2014-2024 eXept Software AG