Variables

1 / 12

A variable is a name holding a piece of text. The shell has no types worth speaking of — everything is a string, and the programs you hand those strings to decide whether they look like numbers.

Assignment looks like every other language. It is the two rules around the assignment that trip people up, and they trip up everyone exactly once.

Finish →