Rahul Siddharthan rsidd120 at
Fri Feb 15 10:02:04 PST 2008

"Justin C. Sherrill" wrote:
>Implementing a language-based shell happens to most every language;

First, a clarification -- I'm talking about a command shell (like tcsh
or bash), not an interactive interpreter like the standard python
interpreter or the read-eval-print loop (REPL) of lisp systems.  The
latter could, I suppose, be used as a command shell by using language
features (like the "os" module in python) to execute system commands.
But that would be incredibly tedious.

>there's psh, the Perl shell, for instance:

This seems to be an ab initio effort to build a shell with perl-like
language features, not actually built on perl.

>There's also perlsh or, which come with Perl. 

That seems to be a REPL.  Ie, it helps developing perl programs, but
is not a substitute for a command shell.

>For other languages - lazy searching turns up these things:
>Interactive Ruby Shell:

This too is a REPL.

>tcl shell?

REPL, as far as I can tell.

>php shell:


All the REPLs above are comparable to the standard python interactive
interpreter.  ipython is something else.


More information about the Kernel mailing list