update manuscript

This commit is contained in:
Dylan Araps
2018-06-20 16:00:33 +10:00
parent 393a288242
commit d2c42689d8
18 changed files with 43 additions and 52 deletions

View File

@@ -1,4 +1,4 @@
# Parameter Expansion
# PARAMETER EXPANSION
## Indirection
@@ -58,7 +58,7 @@
| `${VAR-STRING}` | If `VAR` is unset, use `STRING` as it's value.
| `${VAR:=STRING}` | If `VAR` is empty or unset, set the value of `VAR` to `STRING`.
| `${VAR=STRING}` | If `VAR` is unset, set the value of `VAR` to `STRING`.
| `${VAR:+STRING}` | If `VAR` isn't empty, use `STRING` as it's value.
| `${VAR:+STRING}` | If `VAR` is not empty, use `STRING` as it's value.
| `${VAR+STRING}` | If `VAR` is set, use `STRING` as it's value.
| `${VAR:?STRING}` | Display an error if empty or unset.
| `${VAR?STRING}` | Display an error if unset.