I am open to suggestions and patches. I don't think the syntax strange, though: it offers a clear and distinct way to differentiate Python and shell commands, and shell commands can access Python variables when specified. And it is a simple rule, without footnotes needed.<br>
<br><div class="gmail_quote">On Wed, Oct 3, 2012 at 11:25 AM, Amirouche Boubekki <span dir="ltr"><<a href="mailto:amirouche.boubekki@gmail.com" target="_blank">amirouche.boubekki@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote"><div class="im">2012/10/3 Jonathan Hayward <span dir="ltr"><<a href="mailto:jonathan.hayward@pobox.com" target="_blank">jonathan.hayward@pobox.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


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.<div><br></div><div>When using Python for scripting, Python lines are indented by an extra tab (or four spaces) while shell-like commands are not indented. So:</div>



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



<div>9</div><div><br></div><div>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.</div>



<div><br></div><div>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.</div></blockquote></div><div><br>Is it possible to drop completly the bash syntax and use some python library (I saw it on github) that wraps bash commands with python functions or the other around making it possible to call python functions with a bash-like syntax. The syntax you are talking about seems strange.<br>


<br>Regards,<br><br>Amirouche<br></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><table cellpadding="0" cellspacing="0" style="font-family:Verdana,Arial,sans"><tbody><tr><td style="padding:20px"><a href="http://jonathanscorner.com/" target="_blank"><img src="http://jonathanscorner.com/images/signature.png" height="88" width="100" border="0" alt="Christos Jonathan Hayward"></a></td>
<td style="padding:20px 20px 20px 0px"><div style="margin-bottom:8px">Christos Jonathan Hayward, an Orthodox Christian author.</div><div style="margin-top:2px;margin-bottom:8px;padding:4px 6px;background-color:rgb(255,255,170);border:1px solid silver">
<p style="margin:0px"><span style="color:silver"><strong><a href="http://amazon.com/author/cjshayward" target="_blank">Amazon</a></strong> • <a href="http://jonathanscorner.com/author/" title="Author biography" target="_blank">Author Bio</a> • <strong><a href="mailto:christos.jonathan.hayward@gmail.com" title="christos.jonathan.hayward@gmail.com" target="_blank">Email</a></strong> • <a href="http://www.facebook.com/christos.jonathan.hayward" title="@christos.jonathan.hayward" target="_blank">Facebook</a> • <a href="http://jonathanscorner.com/plus" title="@Christos Jonathan Hayward" target="_blank">Google Plus</a> • <strong><a href="http://stornge.com/amazon" target="_blank">Kindle</a></strong> • <a href="http://www.linkedin.com/in/jonathanhayward" title="@jonathanhayward" target="_blank">LinkedIn</a> • <b><a href="http://jonathanhayward.com/" target="_blank">Professional</a></b> • <a href="http://twitter.com/JonathansCorner" title="@JonathansCorner" target="_blank">Twitter</a> • <strong><a href="http://jonathanscorner.com/" title="JonathansCorner.com" target="_blank">Web</a></strong> • <a href="http://jonathanscorner.com/" title="New creations added to the website." target="_blank">What's New?</a></span></p>
</div><div style="margin-bottom:8px">I invite you to visit my "theology, literature, and other creative works" site. <strong><a href="http://random.jonathanscorner.com/" target="_blank">See one page of my website!</a></strong></div>
</td></tr></tbody></table><br>