Module scallop::shell

source ·

Statics§

  • Version string related to the bundled bash release.

Functions§

  • Returns the line number of the currently executing command.
  • Returns true if currently operating in the main process.
  • Returns true if currently operating in a subshell, false otherwise.
  • Initialize the shell for library use.
  • Start an interactive shell session.
  • Returns true if currently operating in restricted mode.
  • Returns true if shell started in restricted mode.
  • Reset the shell back to a pristine state, optionally skipping a list of variables.
  • Run a function in restricted mode.
  • Returns the count of nested subshells (also available via $BASH_SUBSHELL).
  • Toggle restricted shell mode.