News for hackers. Stuff that matters.
Re:Detecting the use of “curl – bash” server side (2016) by knome on Wednesday December 09, 2020 @11:44AM (#25360552)
This doesn't seem to have any real advantage over just using an intermediate file.
Re:Detecting the use of “curl – bash” server side (2016) by OskarS on Wednesday December 09, 2020 @12:41PM (#25361255)
Of course you can always use an intermediate file, the point is that sponge is a very convenient way to just do it in a single command, without having to use intermediate files.

You don't have to use pipes either, you know. You can just save the output from every command to an intermediate file, then run the next command with that file as input.