<story><title>Writing a Unix Shell</title><url>https://indradhanush.github.io/blog/writing-a-unix-shell-part-1/</url></story><parent_chain></parent_chain><comment><author>chubot</author><text>FWIW I wrote a pretty complete shell in ~11K lines of Python:&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;oilshell&amp;#x2F;oil&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;oilshell&amp;#x2F;oil&lt;/a&gt; (osh&amp;#x2F; and core&amp;#x2F; directories):&lt;p&gt;Right now the goal is to clone bash but have better parse time and runtime errors.  I hope to make an initial release this summer.  But the project is much larger (see the blog if interested).</text></comment>
<story><title>Writing a Unix Shell</title><url>https://indradhanush.github.io/blog/writing-a-unix-shell-part-1/</url></story><parent_chain></parent_chain><comment><author>luckydude</author><text>Marc Rochkind&amp;#x27;s Advanced Unix Programming is a very approachable book that walks you through, among other things, writing a shell.&lt;p&gt;It&amp;#x27;s a good book, give it a read.</text></comment>