[TxMt] PyMate in RUBY?!?!?

Alexander Ross alex.j.ross at gmail.com
Mon Nov 6 20:30:29 UTC 2006


No, I'm saying that that is one of the nice features of ruby.

in python, you have to do something like:

python -c "import os; print os.popen('echo \"Hello from the shell\"').read()"



On 11/6/06, James Edward Gray II <james at grayproductions.net> wrote:
> On Nov 6, 2006, at 1:38 PM, Alex Ross wrote:
>
> > also, you can just `echo 'write shell commands'` and get strings back.
>
> Are you saying you don't know how to do this in Ruby?
>
> $ ruby -e 'p `echo "Hello from the shell!"`'
> "Hello from the shell!\n"
>
> James Edward Gray II
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate
>



More information about the textmate mailing list