Bash (specifically Bash, not POSIX sh) does have a keyword for functions (function), but it’s optional.
- 0 Posts
- 2 Comments
Joined 1 year ago
Cake day: October 1st, 2024
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.


Right. It’s optional so that Bash remains backwards compatible as a superset of POSIX sh. If you’re working with exclusively Bash, though, it’s nice to use as syntactic sugar if nothing else.