From 41bdf08f4c5a23b43c18b3e6d8e4ffd15ffdac17 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Wed, 20 Aug 2025 05:38:38 +0300 Subject: fix: Correct code blocks --- src/blog/bash-is-weird/index.du | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/blog/bash-is-weird') diff --git a/src/blog/bash-is-weird/index.du b/src/blog/bash-is-weird/index.du index 3fe56cb..8bb9632 100644 --- a/src/blog/bash-is-weird/index.du +++ b/src/blog/bash-is-weird/index.du @@ -30,7 +30,7 @@ It has 3 things which really bothered me: Side note: obviously, the original expected behaviour can happen if we use some quotes: ```bash - myvar=("$(echo A B C)") +myvar=("$(echo A B C)") 2. On the second line, `[myvar]` *[becomes]* an integer and then we do an arithmetic operation on it, nothing wrong here. `[\${parameter:offset:length}]` returns the substring from `[parameter]` from `[offset]` with size `[length]`, but we're giving it a "number", so it should either throw some sort of error or return something default, like 0. -- cgit v1.3.1-26-gb76a