Fix typo in bash.md
This commit is contained in:
parent
587c7aac4b
commit
a6790334fa
2
bash.md
2
bash.md
|
@ -178,7 +178,7 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
|
||||||
| `${FOO:-val}` | `$FOO`, or `val` if not set |
|
| `${FOO:-val}` | `$FOO`, or `val` if not set |
|
||||||
| `${FOO:=val}` | Set `$FOO` to `val` if not set |
|
| `${FOO:=val}` | Set `$FOO` to `val` if not set |
|
||||||
| `${FOO:+val}` | `val` if `$FOO` is set |
|
| `${FOO:+val}` | `val` if `$FOO` is set |
|
||||||
| `${FOO:?message}` | Show error message ande xit if `$FOO` is not set |
|
| `${FOO:?message}` | Show error message and exit if `$FOO` is not set |
|
||||||
|
|
||||||
The `:` is optional (eg, `${FOO=word}` works)
|
The `:` is optional (eg, `${FOO=word}` works)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue