Björn TantauA to Programmer Humor@programming.dev · 2 days agoPretty straight forwardimagemessage-square46fedilinkarrow-up1699arrow-down112file-text
arrow-up1687arrow-down1imagePretty straight forwardBjörn TantauA to Programmer Humor@programming.dev · 2 days agomessage-square46fedilinkfile-text
minus-squaretempest@lemmy.calinkfedilinkarrow-up55·2 days agoThat wouldn’t necessarily be bash though
minus-squaresmeg@feddit.uklinkfedilinkEnglisharrow-up54arrow-down1·2 days agoFine, system("bash -c 'echo hello world'"); then!
minus-squareultrafastsloth@lemmy.worldlinkfedilinkarrow-up11·1 day agoI decided to throw my PC in the composter and become a gardener
minus-squaresmeg@feddit.uklinkfedilinkEnglisharrow-up3·1 day agoThat was actually the first line of C I’ve ever written so there’s no way I’m guessing the right number of escapes, but I guess I’d cheat by finding the value of each char and printing those one at a time.
That wouldn’t necessarily be bash though
Fine,
system("bash -c 'echo hello world'");
then!Now print “¯\_(ツ)_/¯” with the quotes
I decided to throw my PC in the composter and become a gardener
That was actually the first line of C I’ve ever written so there’s no way I’m guessing the right number of escapes, but I guess I’d cheat by finding the value of each char and printing those one at a time.
Fair, should’ve just said shell