From: Ari Brown Date: 2007-04-26T05:29:52+09:00 Subject: Re: Is it possible to make system use bash instead of sh? 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