Björn Tantau@swg-empire.de to Programmer Humor@programming.dev · 6 days agoPretty straight forwardswg-empire.deimagemessage-square26fedilinkarrow-up120arrow-down10file-text
arrow-up120arrow-down1imagePretty straight forwardswg-empire.deBjörn Tantau@swg-empire.de to Programmer Humor@programming.dev · 6 days agomessage-square26fedilinkfile-text
minus-squaresmeg@feddit.uklinkfedilinkEnglisharrow-up4·6 days agoFine, system("bash -c 'echo hello world'"); then!
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·6 days agoI decided to throw my PC in the composter and become a gardener
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