Summary Files Commits Branches @commit @diff @stats
path: root / src / blog / bash-is-weird
diff options
context:
space:
mode:
Commit41bdf08f4c5a23b43c18b3e6d8e4ffd15ffdac17 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-08-20 05:38:38 +0300
Committer
 Syndamia <kamen@syndamia.com>
2025-08-20 05:38:38 +0300
Filesdfc0ab9d8ec784061d74625f45b71aa6162883a9 /src/blog/bash-is-weird
syndamia.com-41bdf08f4c5a23b43c18b3e6d8e4ffd15ffdac17.tar
syndamia.com-41bdf08f4c5a23b43c18b3e6d8e4ffd15ffdac17.tar.gz
syndamia.com-41bdf08f4c5a23b43c18b3e6d8e4ffd15ffdac17.zip
Parentdd1159d8a053817b9f89902d6ddff4fce1675894 (diff)
fix: Correct code blocks
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/blog/bash-is-weird/index.du2
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.