Linked by Adam S on Tue 8th Jul 2008 12:47 UTC
Talk, Rumors, X Versus Y In 2006, Microsoft released Windows Powershell, a new command line shell that, via cmdlets, scripts, and executables, allow core system administration tasks to be scripted. While this functionality has been available on Unix-type systems for decades, Microsoft's version will almost certainly, within a few years, be available on several hundred million PCs. So how does the Powershell stack up against Linux favorite bash? MSDN links to this Bash vs Powershell article.
Thread beginning with comment 321900
To read all comments associated with this story, please click here.
I don't get PowerShell
by vvsiz on Tue 8th Jul 2008 13:27 UTC
vvsiz
Member since:
2007-10-24

I don't get PowerShell. After years of hype, after a couple of studied books on PowerShell, it is still feels like a overweight, totally-incompatible and awkward way of automating/scripting things.

It can't replace the BAT files.

For simple tasks, I prefer just built-in, established means (bash on Unix, BAT files on Windows). For more advanced things, there is always Perl/Ruby/Python.

Reply Score: 2

RE: I don't get PowerShell
by drahca on Tue 8th Jul 2008 13:38 in reply to "I don't get PowerShell"
drahca Member since:
2006-02-23

From what I understand PowerShell more or less is intended to replace standard BAT files. Maybe you can elaborate a bit as to why it cannot replace BAT files in your view.

While I am no expert on PowerShell, I do like the idea of using introspection to preserve type information between processes connected through a pipe. In Bash you are mostly stuck to using awk to parse the text-only output of some tool, since all type info has been lost.

Does anyone know why they chose the '$' like PHP syntax for variables? Does this facilitate parsing or something? The dollar sign in PHP mostly feels redundant, although the double $$ is sometimes really handy.

Reply Parent Score: 3

RE[2]: I don't get PowerShell
by grfgguvf on Tue 8th Jul 2008 14:05 in reply to "RE: I don't get PowerShell"
grfgguvf Member since:
2006-09-25

One of the goals of Powershell was matching the power of Unix scripting tools.

So they intentionally chose a Perl-like syntax, hence the $.

Reply Parent Score: 0

RE: I don't get PowerShell
by modicr on Tue 8th Jul 2008 13:44 in reply to "I don't get PowerShell"
modicr Member since:
2005-09-20

>It can't replace the BAT files.

I like 4DOS: http://4dos.z-bg.com/

Reply Parent Score: 3

RE[2]: I don't get PowerShell
by rcsteiner on Tue 8th Jul 2008 17:26 in reply to "RE: I don't get PowerShell"
rcsteiner Member since:
2005-07-12

Me too... And 4OS2, and 4NT, and Take Command, and...

Reply Parent Score: 2

RE: I don't get PowerShell
by BluenoseJake on Tue 8th Jul 2008 14:26 in reply to "I don't get PowerShell"
BluenoseJake Member since:
2005-08-11

I love powershell, it is much more powerful and flexible than batch files, even with the limited branching that batch files support.

I'm well on my way to purging my servers of as many batch files as possible, replacing them with ps scripts, as it gets rid of so many 3rd party tools (like blat). Because it's .NET based, it allows you to write directly to the eventlog, watch directories for changes, access AD, you name it.

Less 3rd party tools mean simpler environments.

Reply Parent Score: 6