Björn@swg-empire.de to Programmer Humor@programming.dev · 1 year agoPretty straight forwardswg-empire.deimagemessage-square45linkfedilinkarrow-up1735arrow-down112file-text
arrow-up1723arrow-down1imagePretty straight forwardswg-empire.deBjörn@swg-empire.de to Programmer Humor@programming.dev · 1 year agomessage-square45linkfedilinkfile-text
minus-squaretempest@lemmy.calinkfedilinkarrow-up58·1 year agoThat wouldn’t necessarily be bash though
minus-squareultrafastsloth@lemmy.worldlinkfedilinkarrow-up17·1 year agoI decided to throw my PC in the composter and become a gardener
minus-squareBeanie@programming.devlinkfedilinkarrow-up4·1 year agomy 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 quotes
That wouldn’t necessarily be bash though
deleted by creator
Now print “¯\_(ツ)_/¯” with the quotes
I decided to throw my PC in the composter and become a gardener
my best guess:
system("bash -c 'echo \\\"¯\\\\_(ツ)_/¯\\\"'");which will get parsed as:
bash -c 'echo \"¯\\_(ツ)_/¯\"'which will run:
echo "¯\_(ツ)_/¯"and since
echojust prints whatever was given to it, it’ll print"¯\_(ツ)_/¯"with the quotesdeleted by creator
Fair, should’ve just said shell