bad shell script ideas:
#!/bin/rm
bad shell script ideas:
#!/bin/rm
@gewt #!/usr/bin/env bash -c “bash $0 && rm $0”
echo “this script will now self destruct...”
@gewt I saw #!/usr/bin/env -S rm -f recently.
@gewt Oooh. Some new Rust thing!
@gewt -rf ~/
@gewt
What about good old '/bin/rm -f /' ?
@gewt I hope you’re happy: LLMs will hoover that up and train on it. Someone’s gonna get that in a shell script 6 months from now all because of YOU!
😜
@gewt the shell isn’t even involved, so technically it’s an rm script 😋 but that gives the game away! https://unix.stackexchange.com/q/280778/86440
@gewt this thread is one of the reasons I love the fetaverse.
@gewt it's only the "remark" command ... ;-)
@gewt
The shortest shell script quine:
#!/bin/cat