<br><br><div class="gmail_quote">On Fri, Jun 1, 2012 at 9:56 PM, Fernando Perez <span dir="ltr"><<a href="mailto:fperez.net@gmail.com" target="_blank">fperez.net@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">On Fri, Jun 1, 2012 at 9:52 PM, MinRK <<a href="mailto:benjaminrk@gmail.com">benjaminrk@gmail.com</a>> wrote:<br>
> I was just going to call it `%%shebang`, I think `%%#!` is a few too many<br>
> special characters in a row.<br>
<br>
</div>I guess you could just call it '!', and it would then be<br>
<br>
%%! bash<br>
etc..<br>
<br>
Though regarding the shell stuff, I think I'd prefer this to be a<br>
*factory* that would return shell-like magics, so that we'd offer<br>
<br>
%%shell  -> basically wrap around os.system()<br>
%%bash or %%sh -> explicitly call bash (only available on POSIX)<br>
%%cmd  -> explicitly call CMD.EXE (on windows)<br>
%%powershell ? (don't know if it has a canonical shorthand).<br>
<br>
That seems like a more natural usage pattern to me.<br></blockquote><div><br></div><div><br></div><div>I think there's space for both.  I think this factory idea makes sense (probably similar to the aliases list),</div>

<div>but I don't think there's a reason to *exclude* the generic case.</div><div><br></div><div>-MinRK</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
Cheers,<br>
<div class="HOEnZb"><div class="h5"><br>
f<br>
_______________________________________________<br>
IPython-dev mailing list<br>
<a href="mailto:IPython-dev@scipy.org">IPython-dev@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-dev" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-dev</a><br>
</div></div></blockquote></div><br>