News for hackers. Stuff that matters.
Re:Preparing Windows Server Technical Preview for Windows Co... by Alupis on Wednesday August 19, 2015 @06:09PM (#10088884)
Hmm, I didn't realize that (not a Perl guy obviously). Even so, Perl isn't a shell, it's a runtime/language. Whereas powershell is, a shell. I would have expected it to be more UNIX-like in that regard.
Re:Preparing Windows Server Technical Preview for Windows Co... by dragontamer on Wednesday August 19, 2015 @06:22PM (#10088954)
> Whereas powershell is, a shell. I would have expected it to be more UNIX-like in that regard.

Well they don't adhere to Unix because they're trying to be better.

Pipes pass _objects_ around in Powershell, and the entirety of .NET libraries is available for use in Powershell... including plugins and everything.

http://www.tomsitpro.com/articles/powershell-piping-filterin...

New Microsoft features are available too, like V-Server integration, Package Management through Chocolatey and so forth.

I am not exactly a Powershell guru, but its definitely evolving in a way superior to BASH scripting. I mean seriously, BASH is so backwards that I can't imagine why ANYONE would seriously recommend taking cues from it.

http://tldp.org/LDP/Bash-Beginners-Guide/html/sect_07_01.htm...

Re:Preparing Windows Server Technical Preview for Windows Co... by vezzy-fnord on Wednesday August 19, 2015 @07:00PM (#10089116)
Bash isn't the end-all of Unix shells.
Re:Preparing Windows Server Technical Preview for Windows Co... by pjmlp on Thursday August 20, 2015 @04:15AM (#10090527)
No, but it seems people nowadays (young users that equate GNU/Linux == UNIX) only know bash.
Re:Preparing Windows Server Technical Preview for Windows Co... by dragontamer on Thursday August 20, 2015 @12:27PM (#10092880)
I have played with ksh and others.

But when it comes down to writing something that others use, you can almost always rely on BASH being installed on their machine.

The other shells... not so much. I hear zsh is pretty good though.

Re:Preparing Windows Server Technical Preview for Windows Co... by vezzy-fnord on Thursday August 20, 2015 @12:51PM (#10093058)
I was more referring to the likes of es, rc and Inferno sh. The rest are all just variants of Bourne or C shell in some way, and even then Bourne and C don't have much in the way of compelling differences.
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.
Re:Preparing Windows Server Technical Preview for Windows Co... by teh_klev on Wednesday August 19, 2015 @06:22PM (#10088964)
>Whereas powershell is, a shell

Hmmm.....I think PowerShell blurs the line between shell and full blown programming environment (as in I can build complete WinForms apps in PowerShell).

Re:Preparing Windows Server Technical Preview for Windows Co... by brandonbloom on Wednesday August 19, 2015 @06:22PM (#10088959)
Again, it's not an exit code or return value, it's an _argument_ to the catch block.
Re:Preparing Windows Server Technical Preview for Windows Co... by pjmlp on Thursday August 20, 2015 @04:12AM (#10090518)
Which UNIX-like?

sh, bash, zsh, korn shell,....