Re:Shell Style Guide
by dijit on Tuesday May 15, 2018 @09:48AM
(#17073875)
Unless you want secure strings.. then it complains about "Crypt32.dll" not being available.
[ Parent
| on HN ]
Or want to pipe data without PowerShell mangling it[0]
PowerShell is materially worse than bash for a great many purposes because of this design choice alone.
[0] https://brianreiter.org/2010/01/29/powershells-object-pipeli...
Re:Shell Style Guide
by MattSteelblade on Wednesday May 16, 2018 @01:50PM
(#17084655)
The particular example this user complains about is piping binary data to file. It makes use of the Out-File cmdlet which is making (by default) Windows based assumptions as to how to encode this content. They would have been better served by using cURL's native -O parameter. To say that the pipe corrupts it is another thing entirely.