mirror of
https://github.com/rawiriblundell/wiki.bash-hackers.org
synced 2024-12-26 06:20:41 +01:00
1012 B
1012 B
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
- grouping: command grouping
- grouping again: command grouping in a subshell
Conditional reactions
Note that conditionals can also be scripted using list, which are syntax elements, not commands.
- the "new" test command: conditional expression
- if-clause: conditional branching
- case statement: pattern-based branching
Loops
Misc
- math: arithmetic evaluation