Is there anything similar to Microsoft Powershell (an object-oriented shell built on the .NET framework) for Linux (possibly built on Java, GObject, or its own object type/nothing)?
edit: especially if similar to bash or powershell or cmd etc. syntax (=''standard'' shell syntax)
Bash is a scripting language, that doesn't support OOP, so you can't.
The Bourne shell is an interactive command interpreter and command programming language. The bsh command runs the Bourne shell. The Bourne shell can be run either as a login shell or as a subshell under the login shell. Only the login command can call the Bourne shell as a login shell.
To end a shell script and set its exit status, use the exit command. Give exit the exit status that your script should have. If it has no explicit status, it will exit with the status of the last command run.
Python. No joking.
Scripting languages are scripting languages, and Python is a particularly nice one that many people find very approachable.
Even though this question is pretty old, I think its worth mentioning that in August 2016 Microsoft made Powershell open-source and cross platform. Instructions for installation are on github.
https://github.com/PowerShell/PowerShell
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With