|
BSFL
0.1.0
Bash Shell Function Library
|
Functions | |
| defined (variable) | |
| Tests if a variable is defined. More... | |
| has_value (variable) | |
| Tests if a variable has a value. More... | |
| option_enabled (variable) | |
| Checks if a variable is set to "y" or "yes". More... | |
| defined | ( | variable | ) |
Tests if a variable is defined.
| variable | Variable to test. |
| 0 | if the variable is defined. |
| 1 | in others cases. |
| has_value | ( | variable | ) |
Tests if a variable has a value.
| variable | Variable to operate on. |
| 0 | if the variable is defined and if value's length > 0. |
| 1 | in others cases. |
| option_enabled | ( | variable | ) |
Checks if a variable is set to "y" or "yes".
Useful for detecting if a boolean configuration option is set or not.
| variable | Variable to test. |
| 0 | if the variable is set to "y" or "yes". |
| 1 | in others cases. |
1.8.6