4 languages that can kill themselves
4 files, each with a different language. Each file will call the next file, and then commit die. Like this:
Basically how this works is each file calls 2 shell commands, one to run the next file, and one to commit toaster bath. The bash command to commit skydiving without a parachute is
I also added brief comments on how the shell commands work in each language so you might learn something.
I'm just bored.
This is absurdly daft and wonderful, wish I thought of it first.... I know the story of a man who though killing a process could be done by delete it's source program. No. Also C++ is compiled to main (the elf binary) with clang so instead of
rm main.cpp do
rm main.cpp main. There is still that cheeky main file still there.