[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Q: Change shell for backquotes

G. Ralph Kuntz, MD, MS

7/21/2008 11:50:00 AM

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.
2 Answers

Nobuyoshi Nakada

7/21/2008 8:06:00 PM

0

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.

--
Nobu Nakada

G. Ralph Kuntz, MD, MS

7/22/2008 11:28:00 AM

0

thanks.