Q: Change shell for backquotes

I am running the native (One-Click Installer) version of Ruby under
Windows, and for various reasons, cannot run the cygwin version. Is
there a way to specify that Ruby should use the cygwin bash as its
shell for backquotes (and Kernel.exec, etc)? I am getting “funny”
results calling PostgreSQL’s psql because of quoting and cmd.

Hi,

At Mon, 21 Jul 2008 20:49:39 +0900,
G. Ralph Kuntz, MD, MS wrote in [ruby-talk:308709]:

I am running the native (One-Click Installer) version of Ruby under
Windows, and for various reasons, cannot run the cygwin version. Is
there a way to specify that Ruby should use the cygwin bash as its
shell for backquotes (and Kernel.exec, etc)? I am getting “funny”
results calling PostgreSQL’s psql because of quoting and cmd.

What a challenger you are. :slight_smile:

Try setting RUBYSHELL to the path to bash.exe in Windows style.

thanks.