From 42df935e43376a7258be57bf5ea97b378f86673e Mon Sep 17 00:00:00 2001 From: TaylorPzreal Date: Tue, 7 Apr 2020 08:45:15 +0800 Subject: [PATCH] Update bash.md Substring from the right should include __parentheses__ --- bash.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bash.md b/bash.md index 001186ee6..c66cf893f 100644 --- a/bash.md +++ b/bash.md @@ -193,7 +193,7 @@ comment ### Substrings | `${FOO:0:3}` | Substring _(position, length)_ | -| `${FOO:-3:3}` | Substring from the right | +| `${FOO:(-3):3}` | Substring from the right | ### Length