News for hackers. Stuff that matters.
Re:I Could Rewrite Curl (2021) by raincole on Monday March 20, 2023 @07:41AM (#35230137)
100 lines is such an amateur number. I can actually do this in 1 lines of shell.

curl -O $1 $2

Checkmate 100line python guy!

Re:I Could Rewrite Curl (2021) by ddtaylor on Monday March 20, 2023 @08:10AM (#35230369)
It's worth noting that Microsoft actually does shim "curl" in Powershell to basically be a light wrapper around the "Invoke-WebRequest" object. Is it a full drop-in replacement for curl? Nope, but it does replace it in the simple context(s) of stuff like "curl -O foo bar"
Re:I Could Rewrite Curl (2021) by raincole on Monday March 20, 2023 @08:26AM (#35230521)
Powershell is really weird in the sense that I can sometimes use Unix-like command like cp, mv, rm... I know it's probablly a completely different thing behind the curtain but it's amusing.