• Scoopta@programming.dev
    link
    fedilink
    arrow-up
    2
    ·
    6 days ago

    …this is so much more cursed than it needs to be. If you want to bash in C just system("echo hello world");

          • Beanie@programming.dev
            link
            fedilink
            arrow-up
            2
            ·
            2 days ago

            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 quotes