Experimental Python-based shell

Jonathan Hayward jonathan.hayward at pobox.com
Wed Oct 3 11:40:05 EDT 2012


The chief benefit besides the searching, so far, is that you can use Py3k
mixed with shell commands as the scripting language--so script in Python
instead of bash.

When using Python for scripting, Python lines are indented by an extra tab
(or four spaces) while shell-like commands are not indented. So:

cjsh>     for index in range(10):
----> echo %(index)d
---->
0
1
2
3
4
5
6
7
8
9

Echo could (and maybe should) be a built-in, but it isn't. The output is
os.system()'ed to bash, which echoes based on a command that includes the
value of a Python variable. The implementation is a bit crude, but it is
reasonably powerful.

I have other things on the agenda, like making it able to run scripts and
doing fuzzy matching, but for now those are the main two attractions.

On Wed, Oct 3, 2012 at 8:52 AM, Amirouche Boubekki <
amirouche.boubekki at gmail.com> wrote:

> Héllo,
>
> 2012/10/3 Jonathan Hayward <christos.jonathan.hayward at gmail.com>
>
>> I've made an experimental Python-based Unix/Linux shell at:
>>
>> http://JonathansCorner.com/cjsh/
>>
>> An experimental Unix/Linux command line shell, implemented in Python 3,
>> that takes advantage of some more recent concepts in terms of usability and
>> searching above pinpointing files in heirarchies.
>>
>
> This sound like a great idea!  What are the other benefits of it except
> the file lookup thing ? Does it do fuzzy match yet ?
>
> Is there any repository on bitbucket or github ?
>
> Thanks,
>
> Amirouche
>



-- 
[image: Christos Jonathan Hayward] <http://jonathanscorner.com/>
Christos Jonathan Hayward, an Orthodox Christian author.

*Amazon <http://amazon.com/author/cjshayward>* • Author
Bio<http://jonathanscorner.com/author/>
 • *Email <christos.jonathan.hayward at gmail.com>* •
Facebook<http://www.facebook.com/christos.jonathan.hayward>
 • Google Plus <http://jonathanscorner.com/plus> •
*Kindle<http://stornge.com/amazon>
* • LinkedIn <http://www.linkedin.com/in/jonathanhayward> •
*Professional<http://jonathanhayward.com/>
* • Twitter <http://twitter.com/JonathansCorner> •
*Web<http://jonathanscorner.com/>
* • What's New? <http://jonathanscorner.com/>
I invite you to visit my "theology, literature, and other creative works"
site. *See one page of my website! <http://random.jonathanscorner.com/>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20121003/b9547e19/attachment.html>


More information about the Python-list mailing list