[prev] [index] [next]

Shell as Interpreter

The shell can be viewed as a programming language interpreter.

As with all interpreters, the shell has:

  • a state   (collection of variables and their values)
  • control   (current location, execution flow)
Different to most interpreters, the shell:
  • modifies the program code before finally executing it
  • has an infinitely extendible set of basic operations