diff options
1 files changed, 1 insertions, 1 deletions
| -rw-r--r-- | src/blog/bash-is-weird/index.du | 2 |
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. |