read-eval-print loop

The cycle an interactive shell repeats: read a line, expand and run it, print the result, then show the prompt again.

In more detail

Every line you type goes through the same steps, and a script goes through them too, only reading from a file with no prompt in between. Knowing that the shell rewrites the line before running it explains most surprises with quotes and variables.

Related terms

Taught in

References