Skip to content

Bash compound commands

The main part of Bash's syntax are the so-called compound commands. They're called like that because they use "real" commands (simple commands or lists) and knit some intelligence around them. That is what the essential "Bash language" is made of.

Command grouping

Conditional reactions

Note that conditionals can also be scripted using list, which are syntax elements, not commands.

Loops

Misc