<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font face="monospace">Hi there!</font></p>
<font face="monospace">This is my first post to this list (any list,
in fact) so please bear with</font><br>
<font face="monospace"> me if I'm doing something wrong. I've been
following the Toybox project for </font><br>
<font face="monospace">a while now after stumbling into a recording
of one of Rob's talks on Youtube. </font><br>
<font face="monospace">When digging down into things recently, I was
particularly delighted to see </font><br>
<font face="monospace">that toysh aims to adhere to the (quote
unquote) bash standard, it was quite </font><br>
<font face="monospace">fun to follow through the bunch of threads
regarding that subject.</font><br>
<font face="monospace"></font><br>
<font face="monospace">Here's some links to (in my eyes)
particularly interesting threads on the</font><font
face="monospace"> </font><br>
<font face="monospace">list archive, as I'm not sure if slapping
them in here as a bunch of quotes</font><br>
<font face="monospace">would be the right approach. </font><br>
<br>
<font face="monospace">If anyone has a link to a paper titled
something along the lines of "How to </font><br>
<font face="monospace">use a Mailing List as a 90s kid", I'll
happily study it!</font>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">[ toysh vs dash ]<br>
</font></p>
<p><font face="monospace"><a class="moz-txt-link-freetext" href="http://lists.landley.net/pipermail/toybox-landley.net/2020-October/012087.html">http://lists.landley.net/pipermail/toybox-landley.net/2020-October/012087.html</a></font></p>
<p>
<blockquote type="cite">
<pre>I'm aiming to replace bash. I don't have a "remove any feature that's not in
posix" flag yet.</pre>
</blockquote>
</p>
<font face="monospace">See above, this is what piqued my interest to
the point of eventually signing</font><br>
<font face="monospace">up</font><font face="monospace"> for the list
and browsing through it for the better part of an afternoon.</font><br>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">[ Would someone please explain what bash
is doing here? ]</font></p>
<p><font face="monospace"><a class="moz-txt-link-freetext" href="http://lists.landley.net/pipermail/toybox-landley.net/2020-June/011788.html">http://lists.landley.net/pipermail/toybox-landley.net/2020-June/011788.html</a></font>
</p>
<p>
<blockquote type="cite">
<pre>I looked at containers for self-contained build and test environments about
three years ago, but the lack of a controlling terminal made it not useful.
Has that changed since? I haven't really looked.
</pre>
</blockquote>
</p>
<font face="monospace">Docker has supported allocation of
pseudo-ttys and stdin streams for a while </font><br>
<font face="monospace">now [1] (am I missing something?), and
systemd-nspawn [2] is intriguing but I </font><br>
<font face="monospace">haven't poked at it yet. Coming from a
kind-of-sort-of background in working </font><br>
<font face="monospace">with containerization concepts (let's be real
though, who doesn't these days) </font><br>
<font face="monospace">this is something I'd totally love to look
into and help out with. Problems </font><br>
<font face="monospace">with interactive TTYs in containerized
environments pretty much always stem </font><br>
<font face="monospace">from running something that doesn't
gracefully handle signals as PID 1. But </font><br>
<font face="monospace">that's about all I know when it comes to the
nitty-gritty of shells so I'd </font><br>
<font face="monospace">love to help and in return learn in the
process!<br>
</font>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">[ mkroot works again, pending release. ]</font></p>
<p><font face="monospace"><a class="moz-txt-link-freetext" href="http://lists.landley.net/pipermail/toybox-landley.net/2020-October/012073.html">http://lists.landley.net/pipermail/toybox-landley.net/2020-October/012073.html</a></font></p>
<p>
<blockquote type="cite">
<pre>I note that except for a couple large holes (lack of $((math)) and function()
support, haven't finished trap/signal/jobs, needs command line editing and
history) toysh is... sort of working now? Several known bugs (test suite
failures), but it's actually starting to be actually run real scripts. Needs
auditing for memory leaks, and the largest script I've thrown at it _is_ the
mkroot init, but... it's advanced from "don't bother" to "object of curiosity".
</pre>
</blockquote>
</p>
<font face="monospace">I suspect that hasn't changed since, alas the
prospect of building a statically </font><br>
<font face="monospace">linked toysh and trying to daily it on "my
actual computer" to in return bombard </font><br>
<font face="monospace">you with bug reports isn't quite viable as of
yet, is it?</font><br>
<font face="monospace">On that note, it's been an awful while (about
10 years) since I've had any</font><br>
<font face="monospace">meaningful exposure to C. I tried to work my
way through the cross compilation </font><br>
<font face="monospace">notes and what makes the Android (clang +
Bionic) and musl-cross-make (GCC + musl) </font><br>
<font face="monospace">processes work, but couldn't quite apply that
to making the (new?) clang + musl on </font><br>
<font face="monospace">x86_64 combo spin (it eventually compiled but
immediately crashed iirc, need to </font><br>
<font face="monospace">look into it again).</font><br>
<font face="monospace">If anyone has played around with that
particular setup, let me know!</font>
<p><font face="monospace"><br>
</font></p>
<font face="monospace">TL;DR: I'd like to help - to the extent of my
abilities - with making the shell </font><br>
<font face="monospace">(more of) a thing in some way if I may, any
starting pointers/feedback on my above </font><br>
<font face="monospace">interpretations of what's been going on would
be greatly appreciated.</font><br>
<font face="monospace">I hope y'all are having nice holidays.</font>
<p><font face="monospace">- Thorben<br>
</font></p>
<p><font face="monospace"><br>
</font></p>
<p><font face="monospace">References:</font></p>
<p><font face="monospace">[1]
<a class="moz-txt-link-freetext" href="https://docs.docker.com/engine/reference/commandline/run/#assign-name-and-allocate-pseudo-tty---name--it">https://docs.docker.com/engine/reference/commandline/run/#assign-name-and-allocate-pseudo-tty---name--it</a></font></p>
<p><font face="monospace">[2]
<a class="moz-txt-link-freetext" href="https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html">https://www.freedesktop.org/software/systemd/man/systemd-nspawn.html</a><br>
</font></p>
</body>
</html>