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