Linked by David Adams on Fri 5th Aug 2011 16:08 UTC
Thread beginning with comment 483864
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: Powershell vs Bash
by benjymouse on Sat 6th Aug 2011 17:50
in reply to "RE: Powershell vs Bash"
The terseness and expressiveness of the generic SH command line is very powerful. The additional lengths and complexity of the the elements in PowerShell warrant more
I am curious as to why you find PowerShell have "additional lengths". I do a lot of scripting in PowerShell and I find that it is almost *always* shorter and more concise than the bash equivalent. Do you have any examples?
Also, I find PowerShell is *a lot* more consistent (naming conventions, parsing rules, parameter passing) with fewer specialized single-purpose features. Don't be fooled by PowerShell examples which (for instructive purposes) use the long-name versions of common commands. For the common commands there's often a short alias (which are a true aliases rather then bash "macro" aliases).




Member since:
2005-07-06
I think PowerShell may be a better SCRIPTING language, but I don't know if it's a better COMMAND LINE language. The terseness and expressiveness of the generic SH command line is very powerful. The additional lengths and complexity of the the elements in PowerShell warrant more an edit/run lifecycle than simply a type it and go and creating simple one offs that SH promotes.