Re:PowerShell is open sourced and is available on Linux
by jjnoakes on Friday August 19, 2016 @08:07AM
(#12319460)
The motivation for PowerShell was to have something good at both. Why switch contexts when moving from interactive use to coded automation if you don't have to?
Re:PowerShell is open sourced and is available on Linux
by qwertyuiop924 on Friday August 19, 2016 @12:08PM
(#12321030)
Because the requirements change depending on which one you're doing: quick shell automation isn't the same as the kind of automation you'd use perl/python for.
Re:PowerShell is open sourced and is available on Linux
by jjnoakes on Friday August 19, 2016 @02:19PM
(#12322154)
And yet most of the time I see bash being used for the same kind of automation that you think is good for perl/python.
And not because bash is good, but because it is what people know (since they use it interactively) and because it is installed everywhere.
So if someone had a tool that was installed everywhere, and used interactively, that could also be used to create more robust automation tasks, that seems like a win to me.
Re:PowerShell is open sourced and is available on Linux
by qwertyuiop924 on Friday August 19, 2016 @05:36PM
(#12323658)
It depends on how complex the automation is. I'd no doubt use a pipeline in places where you'd use perl/python.
As for interactive use and robust automation, Bash isn't as bad as you'd think. The reason I'd go to python is because of script complexity, not lack of robustness.
For interactive use, the conciseness, the human-readability of input/output and the fault-tolerance to unrelated changes in the input/output formats provided by Unix shells are also preferable.