Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 23 days agoPretty straight forwardswg-empire.deexternal-linkmessage-square6fedilinkarrow-up16file-text
arrow-up16external-linkPretty straight forwardswg-empire.deBjörn Tantau@swg-empire.de to Programmer Humor@programming.dev · 23 days agomessage-square6fedilinkfile-text
minus-squareBeanie@programming.devlinkfedilinkarrow-up1·19 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-up1·22 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