Tsk tsk… forgot to clean up your temp file!
That emoji annoys me more than I would like
As if someone’s telling a joke and saying “This is where you should laugh”
It’s the meme version of a laugh track
Laugh tracks have a purpose though. I understand they’re not to everyone’s liking - and that’s fine, but they work for some comedy shows - and usually they’re from the live audience that sees things performed in front of them.
…this is so much more cursed than it needs to be. If you want to bash in C just
system("echo hello world");
That wouldn’t necessarily be bash though
Fine,
system("bash -c 'echo hello world'");
then!Now print “¯\_(ツ)_/¯” with the quotes
my best guess:
system("bash -c 'echo \\\"¯\\\\_(ツ)_/¯\\\"'");
which will get parsed as:
bash -c 'echo \"¯\\_(ツ)_/¯\"'
which will run:
echo "¯\_(ツ)_/¯"
and since
echo
just prints whatever was given to it, it’ll print"¯\_(ツ)_/¯"
with the quotesI decided to throw my PC in the composter and become a gardener
Sure.
Okay but 🍒 shouldn’t output 🍉. This is inconsistent and confusing. We have standards.
Picking emojis that make sense actually made it easy to read.
My coworkers could learn a thing or two from this. For one, it actually works.
Thanks, I hate it.
Violates CERT C ENV33-C.
It violates oh so much including that.
Always follow best practices, make sure you cleanup by deleting the hello world bash file!
Now call that C program from some other program in another language.
Rust, to make it safe.
step 1:
unsafe fn()
…
with open('program.c', 'w') as f: f.write( """I'm not actually going to copy down the program... But you get the idea of the joke. Right?""")
For shame. They forgot to make a script to make a tmp script using mktmp, so they can store their tmp script in the tmp script and have proper cleanup
why would you hurt me like this
Fucking brilliant