Re: E-waste

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 %%N 
Like 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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu