News for hackers. Stuff that matters.
Re:Curl to shell isn't so bad by glic3rinu on Saturday November 09, 2019 @04:46AM (#21490577)
A common solution is to wrap all code within a function. This way nothing gets executed until the last line, the one that calls the function, is executed.

  function main () {
     # all code goes here
  }
  main
Re:Curl to shell isn't so bad by amalcon on Saturday November 09, 2019 @09:45AM (#21491800)
Common, but not universal. If I pipe a response body into a shell, I don't get to check whether they were careful or not.