From a6790334fa84a380eda26e9e95dc6a64a63a939f Mon Sep 17 00:00:00 2001 From: Dmitry Zudochkin Date: Wed, 4 Oct 2017 22:58:28 +0300 Subject: [PATCH] Fix typo in bash.md --- bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.md b/bash.md index f563a867b..ff356bf9b 100644 --- a/bash.md +++ b/bash.md @@ -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)