Pythonized Shell
Trevor Clarke
retrev at razor
Fri Apr 23 13:29:19 EDT 1999
Here it is....another Pythonized shell....this one is really simple(for now at
least). It reads input from stdin and try's to eval() it. If that fails, it
try's to exec() it. If that fails, it os.system()'s it. It also has support for
simple alias'ing of commands. You can import <module> and cd(1) is part of the
shell(so it actually works :) ) I'm working on a faster C version that will
look a lot like csh(1) except programming is done in python and all the python
interactive interpreter features will be there. Let me know what you think...
ftp://ftp.csh.rit.edu/csh/retrev/psh
--
Trevor R.H. Clarke Computer Science House
Rochester Institute of Technology Scientific Programmer for CIS
retrev at csh.rit.edu trcpci at cis.rit.edu
http://www.csh.rit.edu/~retrev/ finger retrev at csh.rit.edu for PGP key
More information about the Python-list
mailing list