@feliks 🧠 Stopped thinking
Γ—
@feliks ai is the future
@feliks stopped thinking indeed
@feliks "stopped thinking" feels like an appropriate label there 🀣
@gedankenstuecke @feliks I’m glad it stopped thinking.
@feliks β€œif you thought for 2 seconds…”
@feliks it doesn't respond with emojis
@feliks 🧠 Stopped thinking

@feliks how do you delete that directory

EDIT: Just reply without realizing that your reply is below.

@joe @feliks rm -i -r ./\~ to be extra extra safe. If you trust your backups, you can chance rm -r \~

I would probably first change into it, delete everything in it, back out, and rmdir \~ it.

@hp @feliks Would I need that for this website, it probably doesn't have access to the home directory
@joe @feliks I get the feeling I'm missing something. >.>

@hp @joe @feliks Why not rename the literal ~ directory to something normal first, and then deal with it as you would deal with any normal directory?

That should just about eliminate the chances for a catastrophic result a typing mistake can have in any destructive command.

@hp @joe no need to be "extra safe", in any competently made software tilde expansion only happens at the start of a path, and any form of quoting will prevent it, so any of these will do just fine:
rm -r ./~
rm -r '~'
rm -r \~
rm -r "~"
if you insist on being extra safe you can rename the directory to not contain a tilde

also damn tilde expansion is cool i didnt know you could write ~+ to get PWD or ~- to get OLDPWD

@sylvie While that is correct, you left out one "extra" in "extra extra safe" which along with several redundant failsafes in the command was there specifically to provide mental peace to people like me who for some reason the thought of wagering the entirety of their personal data on their software being made competently might make a little anxious.

Oh, and ~+ and ~- are not POSIX, don't use them in /bin/sh scripts.

@hp i dont think ill really have a reason to use them in a shell script anyway, i thought $OLDPWD was a convenience feature for /interactive/ use
Tilde Expansion (Bash Reference Manual)

Tilde Expansion (Bash Reference Manual)

@joe @feliks

$ python3
>>> import os
>>> os.rmdir('~') # Python does not expand ~ unless explicitly instructed to

@AVincentInSpace
It's not that Python doesn't follow the alias. You're calling os.rmdir(),
Which just tells Python to ask the operating system to remove a directory by the explicit name of ~ on its behalf. 
@joe @feliks open file browser - right click - delete
@feliks Yeah I too stopped thinking right there after two seconds
@feliks "Stopped thinking" indeed...
@feliks Clearly, the singularity has begun
@hosford42 @feliks "All of the AI bots took note, quickly applying their new knowledge, and triggering what is known today as 'The era of cascading deletions.'" - from the future masterpiece, "A Child's Garden of Mistakes"

@feliks

Stopped thinking? It never started

@feliks I guess theyβ€˜re ready to take over now?

@feliks

I can hope, and even believe this might be satire, but it's 50/50 really.

If it is, it's pitch perfect. No notes.

@feliks

thought for 2 secondsSaaame

@feliks how to delete others toots
@feliks No ChatGPT, you should do sudo rm -rf / first

@feliks

Running teams of junior devs for lots of years, I should probably write up a contingency plan for this.

@sergio_101 @feliks Reminds me of the time when a filer ran out of space, and my manager wrote to the junior sysadmin that he should delete the directory of a former colleague after copying it to another (slower) filer.

And the next morning, that admin apologized for having missed the part after "after" because of an unlucky line break ...

@feliks Kids, don't try this at home!
@feliks
Read mail really fast.
"Eventually, the chatbot stopped thinking."

@feliks Reminds me of the time I had a file named foo.txt whose contents were

foo.txt: file not found

I wanted to find out what was in this file so I typed β€œcat foo.txt” and got myself mighty confused for a little while.

@feliks I got a shot of adrenaline just reading that last line...