Merge pull request #74 from vredniy/patch-1

Fix typo in bash.md
This commit is contained in:
Rico Sta. Cruz 2017-10-08 07:18:44 +08:00 committed by GitHub
commit c66b8c156b
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ DIR=${SRC%$BASE} #=> "/path/to" (dirpath)
| `${FOO:-val}` | `$FOO`, or `val` if not set |
| `${FOO:=val}` | Set `$FOO` to `val` if not 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)