[TxMt] Re: TM_DATE , Ruby and Latex Template

Hans-Jörg Bibiko bibiko at eva.mpg.de
Tue Nov 11 15:40:52 UTC 2008


On 11.11.2008, at 15:07, Alain Matthes wrote:

> another question is : how to make a command with two parts : a ruby
> script and a bash script ?

There're many possibilities.

one of them:
--------------------------------------------
#!/usr/bin/env sh

echo "Now I'm in bash"

# RET is set be invoking Ruby
RET=$(cat <<-RUBY | /usr/bin/ruby -

a = [1,2,3]

p "Ruby: #{a.inspect}"

RUBY)

# return to bash
echo "$RET"




--HansJ




More information about the textmate mailing list