Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 6 days agoPretty straight forwardswg-empire.deimagemessage-square26fedilinkarrow-up116arrow-down10file-text
arrow-up116arrow-down1imagePretty straight forwardswg-empire.deBjörn Tantau@swg-empire.de to Programmer Humor@programming.dev · 6 days agomessage-square26fedilinkfile-text
minus-squareBeanie@programming.devlinkfedilinkarrow-up2·2 days 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
minus-squareultrafastsloth@lemmy.worldlinkfedilinkarrow-up4·5 days agoI decided to throw my PC in the composter and become a gardener
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