Re:Shell Style Guide
by Already__Taken on Tuesday May 15, 2018 @09:36AM
(#17073784)
Which actually supports linux with PS 6.0+
[ Parent
| on HN ]
Unless you want secure strings.. then it complains about "Crypt32.dll" not being available.
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.
Re:Shell Style Guide
by NiveaGeForce on Tuesday May 15, 2018 @09:40AM
(#17073821)
Indeed.