---
title: "Comment by Gan Louy on \"A base64 decoder in pure shell script\" | Hashnode"
description: "for ((i = 0; i &lt;= ${#word}-1; ++i)); do should be &quot;&lt;=&quot;, &quot;&lt;&quot; will cause broken output."
url: "https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7/comment/64f1588466816b6d3918b425"
---

[Discussion](https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7)

Comment [A base64 decoder in pure shell script](https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7)

[Gan Louy](https://hashnode.com/@louygan)

[Sep 1, 2023](https://hashnode.com/posts/a-base64-decoder-in-pure-shell-script/61d715899cea31197e02bdb7/comment/64f1588466816b6d3918b425)

for ((i = 0; i <= ${#word}-1; ++i)); do

should be "<=", "<" will cause broken output.
