News for hackers. Stuff that matters.
Re:Writing a Polyglot Script by fwip on Saturday January 25, 2020 @06:35PM (#22149347)
Wouldn't it have been easier to submit:

    #!/bin/bash
    Rscript myscript.R
Re:Writing a Polyglot Script by shakna on Saturday January 25, 2020 @07:28PM (#22149575)
They may have only been able to submit the single file to the system. (In which case I would have generated the Rscript to a tmpfile, but maybe that wasn't allowed either.)
Re:Writing a Polyglot Script by rcthompson on Saturday January 25, 2020 @08:01PM (#22149701)
No, I totally could have written a separate R script that was then run by the bash script. I just wanted to have it all in one file, and I thought it was a fun challenge figuring out how to do it.