💾 Archived View for midnight.pub › posts › 1862 captured on 2024-06-16 at 12:34:07. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-05-26)
-=-=-=-=-=-=-
I'm no longer seeing where I got the bash script for posting to Midnight Pub, but I used it on and off, but too many times suffered partial postings because when what I was publishing had shell characters that the script/shell couldn't handle, so I can't post a link to it....
But, anyway, I rewrote it in Lua today, attempting to escape problematic characters, and mostly succeeded.
However, the text I used to test my own code was the Lua script that does the escaping itself, which of course has places where the problematic characters are escaped, and it seems one runs into a wall when attempting to do that, because the script can't properly escape the string replacement calls... and now I'm wondering if that's a sort of "attempting to jump over one's knees" situation....?
You can find the original bash script here: