💾 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

View Raw

More Information

⬅️ Previous capture (2024-05-26)

➡️ Next capture (2024-08-18)

🚧 View Differences

-=-=-=-=-=-=-

Midnight Pub

Am I losing my mind or...?

~inquiry

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....?

Write a reply

Replies

~tracker wrote (thread):

You can find the original bash script here:

gemini://m15o.midnight.pub/midnight-sh.gmi