From: Mojca Miklavec Date: 2006-01-14T02:06:45+09:00 Subject: Re: ruby under cygwin & windows paths David Vallner wrote: > Also, you might try yet another ugly hack. Put a file called "ruby.bat" > somewhere that's on your PATH before the Cygwin bin directory. Then have > that file call the Cygwin bash with a script that transforms the Windows > path into a POSIX one (I'm almost sure Cygwin comes with a tool for that) > and calls ruby that way. The disadvantage to this is that it' bound to > break command line switches sooner or later. I might get back to this a > while later today, these are replies in a hurry. Thanks. I didn't think about creating another ruby.bat file. There's a "cygpath" utility in cygwin, but I didn't figure out yet how to use it to call another program an to tell him which paths to use. I didn't write the scripts by myself. ConTeXt (a kind of TeX extension/macro package) uses perl and ruby for different tasks, so that ruby is called somewhere inbetween. I can't run the whole stuff from bash since I don't have ConTeXt installed under cygwin, but ruby.bat might help perhaps. It's pretty complicated situation (one runs an exe which calls a ruby script which calls another perl script which calls another ruby script, ...) I'll also try to find someone who knows cygwin slightly better if everything else fails. I didn't even notice that cygwin is (mis)used for ruby (most scripts work properly) until I struggled against some problems. Thanks a lot for help. Mojca