What are the advantages of using this vs using the REPL of a mature language like Ruby that already lets you execute shell commands?
I find myself using %x() while in irb all the time.
I find myself using %x() while in irb all the time.
My typing barrier for %x(ls) is too high.
You could totally make Ruby turn ": ls" into "%w(ls)", or whatever other symbol.
This just seems a lot more work for the same thing.
shok could have put ruby or python or some other language behind its {} syntax. That would be less NIH-syndrome, but maybe there's merit to trying something more ambitious. Or maybe not.
{#!python
do dome python...
}Also, I'll just leave this here: http://devopsanywhere.blogspot.com/2011/09/how-ruby-is-beati...