Q: Change shell for backquotes

  • Thread starter G. Ralph Kuntz, MD, MS
  • Start date
G

G. Ralph Kuntz, MD, MS

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.
 
N

Nobuyoshi Nakada

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. :)

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top