News for hackers. Stuff that matters.
Re:Preparing Windows Server Technical Preview for Windows Co... by bkeroack on Wednesday August 19, 2015 @06:21PM (#10088944)
Powershell is a shell and a fully-fledged language. In that way it is considerably more advanced than bash/sh/csh/ksh/etc.
Re:Preparing Windows Server Technical Preview for Windows Co... by helper on Wednesday August 19, 2015 @06:29PM (#10088993)
Are you saying that /bin/sh isn't turing complete?
Re:Preparing Windows Server Technical Preview for Windows Co... by bkeroack on Wednesday August 19, 2015 @06:47PM (#10089068)
Not at all. What I'm saying is that /bin/sh has idiosyncratic, incomplete language syntax and semantics (mostly for historical reasons). For example, variable comparison is not built in but rather is dependent upon the external [ (or test). It would be hard to call a language 'complete' when it doesn't even support variable equality testing.

Whatever you think of Windows/MS/etc, Powershell is a decently-well-designed, complete language with a number of useful, convenient constructs. For example, here is a native Powershell hashmap (that can be looped over, etc.):

  $states = @{"Washington" = "Olympia"; "Oregon" = "Salem"; California = "Sacramento"}
Nice, no?
Re:Preparing Windows Server Technical Preview for Windows Co... by malkia on Wednesday August 19, 2015 @07:20PM (#10089182)
Powershell has lots of cool features, startup-time not being one of it. It's very important for some of these scripts to start in a matter of milliseconds.
Re:Preparing Windows Server Technical Preview for Windows Co... by Sanddancer on Wednesday August 19, 2015 @07:25PM (#10089197)
Powershell starts pretty immediately for me. Older versions chugged, but testing on my desktop and laptop opened pretty much instantaneously.
Re:Preparing Windows Server Technical Preview for Windows Co... by malkia on Friday August 21, 2015 @02:34AM (#10096235)
Then I need to try it out again. After months of working only with Linux, OSX - I miss a bit the good ole NT :) - Far Manager, System Internal tools, WinDBG, etc.