reserved word

A word such as if, then, for, do, done, case or function that the shell treats as grammar rather than as a command name.

In more detail

Reserved words are recognised only where a command could start, which is why if and then need a semicolon or a newline between them. The double bracket [[ is a reserved word too, which is how it can see your quotes and skip word splitting. Running type if prints if is a shell keyword.

Related terms

Taught in

References