Well, that didn't take long: within a week of applause for Microsoft's decision to open-source PowerShell, a comment-war has broken out over
curl
andwget
.For those not familiar with these commands: they're open source command line tools for fetching Internet content without a browser. Apart from obvious applications like downloading whole sites (for example as backup), they're also under the hood for a lot of other toolsets (an example the author is familiar with – GIS tools use
curl
and/orwget
to fetch maps from Web services).For some reason, Microsoft's team decided to put aliases for
curl
andwget
in Windows PowerShell – but, as this thread begins, those aliases don't delivercurl
andwget
functionality.The pull request says the aliases should be spiked: "They block use of the commonly used command line tools without providing even an attempt to offer the same functionality. They serve no purpose for PowerShell users but cause confusion and problems to existing
curl
andwget
users."
-- submitted from IRC
(Score: 2) by LoRdTAW on Tuesday August 23 2016, @12:42PM
I'm not finding enough details here but what commands are aliased to provide said functionality? And it sounds like are the alias' are hard coded and changing them would break things which is absurd. Then again...
(Score: 2) by rob_on_earth on Tuesday August 23 2016, @01:27PM
When I started using powershell on windows servers a few years ago and I could not install cygwin, this functionality was heaven sent.
Both curl and wget are aliased to invoke-webrequest which I had no idea existed. It takes none of the parameters that real curl or wget want but just typing
curl http://www.google.com [google.com]
wget http://www.google.com [google.com]
iwr http://www.google.com [google.com]
invoke-webrequest http://www.google.com [google.com]
all download the google home page
Which is all well and good except what you actually see on screen it a snip it of n bytes(500ish) you have to request the rawdata property of the returned object to see all the bytes.
It is good, bad and ugly but is only useful on Windows.