# NT Emacs, Cygwin Ruby, and M-x run-ruby

**URL:** <https://www.ruby-forum.com/t/nt-emacs-cygwin-ruby-and-m-x-run-ruby/114159>\
**Category:** Ruby\
**Created:** [September 8, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/nt-emacs-cygwin-ruby-and-m-x-run-ruby/114159 "2007-09-08T20:31:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HiHeelHottie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/76d3ee/32.png) [@HiHeelHottie](https://www.ruby-forum.com/u/HiHeelHottie)\
**Post date:** [September 8, 2007, 8:31pm UTC](https://www.ruby-forum.com/t/nt-emacs-cygwin-ruby-and-m-x-run-ruby/114159/1 "2007-09-08T20:31:44Z")

</div>

Hello,

Has anybody gotten NT emacs, cygwin ruby, and M-x run-ruby to work?

I’ve tried the following,

(defvar ruby-program-name “bash -c “irb --inf-ruby-mode”” “\*Program  
invoked by the run-ruby command”)

and get the following in the _ruby_ window,

–inf-ruby-mode": -c: line 0: unexpected EOF while looking for matching  
`"’  
–inf-ruby-mode": -c: line 1: syntax error: unexpected end of file

Process ruby exited abnormally with code 2

Within a _shell_ window in emacs, I’m able to run bash -c “irb  
–inf-ruby-mode” fine. If I try bash -c irb --inf-ruby-mode, I don’t  
see  
the irb prompt.

Thanks for any help,

Tamara
