mirror of
https://github.com/flokoe/bash-hackers-wiki.git
synced 2024-11-25 15:53:41 +01:00
1.1 KiB
1.1 KiB
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
- menus: user selections