Whole-known-network
<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 "days since I reverse engineered an interesting function and it turned out to be sprintf" counter*</p>
<p>What I'm listening to today: "Seven", Koreless</p><p>A fun little electronica track. Has enjoyably strange sound design and a peppy, shuffling beat, as if you'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 << EOF > /sh<br />#!/bin/bash<br />echo "Ignoring args: ${@}"<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 << EOF > /home/user/script<br />#!/bin/sh<br />echo "not gonna happen."<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 '#!' line and exec something else for you, since POSIX doesn't require execl() to honor '#!' (although it can). POSIX requires execl() to pass things that are not 'valid executable objects' to the POSIX sh, although I'm sure POSIX also allows a '#!' 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>> 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!)