有哪些基于对象的外壳? [英] what object-based shells are there?
问题描述
我打算编写一个面向对象的shell(基于Python).我已经有很多想法了.但是在我要实现它之前,我想用一些现有的外壳启发我.
I am planning to write an object-oriented shell (based on Python). I have many ideas already. But before I am going to implement it, I want to inspire me by some existing shell.
我基本上是指面向对象的意思
What I basically mean by object-oriented:
- 参数不仅是字符串数组,而且是对象数组.
- 返回值也是一个对象.
- 不仅有stdin,stdout和stderr,而且还有任意数量的命名流,它们可以是某些类型的(不仅仅是字节流).
我已经阅读到Windows PowerShell有点类似(基于.Net).尽管我正在搜索一些现有的Linux/MacOSX shell.
I have read that the Windows PowerShell is somewhat like that (based on .Net). Though I am searching for some existing Linux/MacOSX shells.
当然也有IPython,但是它并不是真正作为Unix shell来使用的,也就是说,围绕管道进行处理非常复杂.
Of course there is also IPython but it is not really intended as a Unix shell, i.e. piping stuff around is quite complicated.
推荐答案
也许您可能想看看 Pash .
它是PowerShell在其他平台上的开源实现.出于教育目的和启发,它可能会很有用.不幸的是,据我所知,这个有前途的项目尚未开发.
It is an open source implementation of the PowerShell for other platforms. For educational purposes and inspiration it might be useful. Unfortunately, as far as I can see, this promising project is not being developed.
这篇关于有哪些基于对象的外壳?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!