bash
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
bash [2020/08/12 17:19] – [Variables] formatting shawn | bash [2020/08/12 19:07] (current) – [Functions] Adds tips shawn | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | ''# | ||
====== set options ====== | ====== set options ====== | ||
Line 9: | Line 11: | ||
* '' | * '' | ||
* '' | * '' | ||
- | * '' | + | * '' |
* use a + to unset them if necessary | * use a + to unset them if necessary | ||
Line 24: | Line 26: | ||
* '' | * '' | ||
+ | ====== Functions ====== | ||
+ | |||
+ | Declaring a function (needs to happen before use): | ||
+ | |||
+ | '' | ||
+ | |||
+ | - or - | ||
+ | |||
+ | ''< | ||
+ | |||
+ | * Nothing ever goes inside parentheses. | ||
+ | * Passed parameters can be accessed with '' | ||
+ | |||
+ | ====== Tips ====== | ||
+ | * [[https:// |
bash.1597252772.txt.gz · Last modified: 2020/08/12 17:19 by shawn