Has anyone ever heard of a UNIX shell written in a reasonable language, like Python?
Well, there's emacs, which is arguably a shell written in lisp :)
Seriously though, are you looking for a reimplementation of an existing shell design in a different language such as Python? Or are you looking for a new implementation of a shell language that looks similar to your language of choice?
iPython (Python) and Rush (Ruby) are shells that are designed for more advanced languages. There's also Hotwire, which is sort of a weird integrated shell/terminal emulator.
- Eshell is a Bash-like shell in Emacs Lisp.
- IPython can be used as a system shell, though the syntax is a bit weird (supporting all of Python plus basic sh constructs).
- fish has a core written in C, but much of its functionality is implemented in itself. Unlike many rare shells, it can be used as your login shell.
- Hotwire deserves another mention. Its basic design appears to be "PowerShell in Python," but it also does some clever things with UI.
- Zoidberg is written in Perl and uses Perl syntax. A nice-looking project, shame it seems to have stalled.
- Scsh would be a pain to use as a login shell (an example command from the docs:
(run/strings (find "." -name *.c -print))
), but it looks like a good "Perl in Scheme."
From all appearances, Python IS a shell. It runs with #!
and it can run interactively. Between the os
and shutil
packages you have all of the features of standard Unix shells.
Since you can do anything in Python with simple, powerful scripts, you don't really need to spend any time messing with the other shells.