2
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> definitely my new gender. My pronouns are top/secret.</p>
<p>*resets the &quot;days since I reverse engineered an interesting function and it turned out to be sprintf&quot; counter*</p>
<p>What I&#39;m listening to today: &quot;Seven&quot;, Koreless</p><p>A fun little electronica track. Has enjoyably strange sound design and a peppy, shuffling beat, as if you&#39;d caught Burial on an up day. The video (which is not a still image) actually seems to encapsulate the track pretty well, something that the longer you look at it starts to seem fleshy and organic in an unidentifiable way.</p><p><a href="https://www.youtube.com/watch?v=4h5XSSjLQis" target="_blank" rel="nofollow noopener noreferrer" translate="no"><span class="invisible">https://www.</span><span class="ellipsis">youtube.com/watch?v=4h5XSSjLQi</span><span class="invisible">s</span></a></p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> lol take the following example:</p><p>cat &lt;&lt; EOF &gt; /sh<br />#!/bin/bash<br />echo &quot;Ignoring args: ${@}&quot;<br />reboot<br />EOF</p><p>chmod +x /sh</p><p>rm -f /bin/sh</p><p>ln -s -t /bin/ /sh</p><p>cat &lt;&lt; EOF &gt; /home/user/script<br />#!/bin/sh<br />echo &quot;not gonna happen.&quot;<br />EOF</p><p>chmod +x /home/user/script</p><p>bash /home/user/script</p>
<p><span class="h-card" translate="no"><a href="https://mastodon.social/@whitequark" class="u-url mention">@<span>whitequark</span></a></span> My only guess is that POSIX wanted to allow for (POSIX) shells that sniff the &#39;#!&#39; line and exec something else for you, since POSIX doesn&#39;t require execl() to honor &#39;#!&#39; (although it can). POSIX requires execl() to pass things that are not &#39;valid executable objects&#39; to the POSIX sh, although I&#39;m sure POSIX also allows a &#39;#!&#39; shell script to be a valid executable object (since that was and is traditional Unix behavior for some Unixes).</p>
<p><span class="h-card" translate="no"><a href="https://nya.social/@linear" class="u-url mention">@<span>linear</span></a></span> like TenDRA of OSes!</p>
<p><a href="https://mastodon.social/@whitequark" class="u-url mention">@whitequark@mastodon.social</a> i was about to say that maybe it would be funny if someone wrote an OS that takes the least charitable interpretation of POSIX whenever possible, and then i remembered that AIX already exists</p>
<p>&gt; If the first line of a file of shell commands starts with the characters #!, the results are unspecified.</p><p>POSIX could you be any more useless as you are.</p>
https://onemillioncheckboxes.com/ One Million Checkboxes (checking a box checks it for everyone!)