Linked by Kroc Camen on Fri 9th Apr 2010 10:29 UTC
Linux "To be clear about this article's intent, it's not to bash Microsoft, or Windows. Because to be fair, despite using Linux 95% of the time while I'm on the PC, I can find more faults with it than Windows. So, this article's goal is to highlight some of the major pluses of Linux, and also showcase where Windows could improve in the future, should Microsoft take heed of the suggestions."
Thread beginning with comment 418273
To view parent comment, click here.
To read all comments associated with this story, please click here.
renhoek
Member since:
2007-04-29

While i agree with most points, i have to say powershell beats any scripting language in linux i tried. Generally you manipulate a stream of objects instead of a stream of untyped text. This way you don't have to use strange awk or sed to get an attribute.

Handling complexer data structures is way easier in powershell. But as an interactive shell it's not that good. I can also open and directly manipulate excell via com objects, it's impossible to do something like this under linux (i mean like generating graphs in openoffice via bash, but please correct me if i'm wrong!) .

Take a look at http://w3.linux-magazine.com/issue/78/Bash_vs._Vista_PowerShell.pdf and try to convert listing #3 to bash, then you wil know what i mean ;)

Reply Parent Score: 2

Delgarde Member since:
2008-08-19

While i agree with most points, i have to say powershell beats any scripting language in linux i tried. Generally you manipulate a stream of objects instead of a stream of untyped text. This way you don't have to use strange awk or sed to get an attribute.


Depends on which scripting languages you allow. If you limit Linux to just the shells (csh, bash, etc), then that's a fair point. But PowerShell is a *lot* more than a mere shell - it's able to invoke system APIs, like the "System.Net.WebClient" in the listing you cite.

In that regard, it's a lot closer to languages like Python... particularly since you consider it an inferior interactive shell...

Reply Parent Score: 2

coolvibe Member since:
2007-08-16

Listing #3 is easy to implement in ksh93. What was your point again?

Reply Parent Score: 1