4 ms·
What are the benefits of using pash(powershell) over bash?
by toisanji 16y ago
What are the benefits of using pash(powershell) over bash?
- riobard 16y agoA few things come to mind: 1. Syntax that doesn't suck 2. Higher-than-text-level abstraction
- cparedes 16y agoThis is the thing that I don't really like about PowerShell. I know I can parse clear text really easily and can do it in many different ways, but I have to rely on methods that are provided in any other type of output.
- runjake 16y agoAlso, it's OO, including through pipes.
- nailer 16y agoYou spend less time grepping for regexs, because the data is already separated from the presentations. Or, in short ps OUTLOOK | kill Ie, no grepping. Yes, that's an actual posh command, as there's aliases for common unix commands.
- snprbob86 16y agoNothing that a decent scripting language with a REPL and some decent libs can't provide you because that is essentially what this is. I, for one, am quite glad that my shell does not pipe objects. Text-based transports have the wonderful property that they are suspend-able (i.e. save output to a file, transfer them to another machine load them from the file; something you can't do with objects without serialization) and consistently represented on the console and for the receiving process. Processes on my machine send and receive arbitrary byte streams. I have specialized tools for communicating with servers with specialized protocols. If you really want a shell AND a scripting language all at once, use something like IPython: http://ipython.scipy.org/moin/ http://ipython.scipy.org/moin/
- shadowfox 16y agoThere are multiple serialization options for powershell though. And since it can be made to work fairly seamlessly with other commandline tools, it isn't usually that hard in practice