Re: E-waste
- Posted by andi49 May 04, 2013
- 5372 views
jimcbrown said...
andi49 said...
powershell is not an new programming language.
I disagree. I'd consider it a scripting language.
Batchfiles are also scripts. Powershell executes all of the old batch commands. So for me (and maybe only for me) it's not new.
jimcbrown said...
andi49 said...
It's an extended cmd.exe or command.com. Maybe you can compare it to the *ix bash,sh,csh etc.
bash,csh,etc. are also scripting languages. In fact, one can argue that command.com batch files are a class of scripting language as well, albeit a very primitive one.
Yes, batch files are a kind of scripting language. They have flow control with 'goto' and loops:
set %N=1 for /L %%N IN (1, 1, 5) DO echo Nummer %%NLike command.com, bash,csh,ksh are command interpreter (shells) and they can excute there own batch files (called scripts). Put one command after the other on a batch and execute it.
But i agree command.com is a very poor script interpreter :)
And powershell is more a language than a simple shell.
Andreas