Ari Brown
4/25/2007 8:30:00 PM
On Apr 25, 2007, at 11:18 AM, Wai Tsang wrote:
> Hi,
>
> Does anyone know if it is possible to use bash instead of sh as the
> default shell when "system" is executed?
Whenever 'system' is executed? Not sure about that. But what you
might be able to do is have a new file that stores code which defines
'system2', and you could include that. It might be something like:
def system2(command)
system 'bash'
system '#{command}
end
Of course, i have no clue (yet) how to use #{stuff} in my code, so
any help would automatically be worthy of worship.
Oh, and same with having two parameters in 'do' commands. Help? Please?
HTH
-------------------------------------------------------|
~ Ari
crap my sig won't fit