From: Thomas Date: 2006-01-17T17:32:27+09:00 Subject: Re: ruby under cygwin & windows paths >> bash -c "ruby '$(cygpath -u %1)' %2 %3 %4 %5 %6 %7 %8 %9" > > Thanks again for all the proposals, but the part with "$(cygpath -u > %1)" doesn't work: > ruby: No such file or derectory -- $(cygpath -u ) (Load Error) Okay, this is getting somewhat OT and should probably rather go to the cygwin list. Anyway, ruby.bat: bash -c "ruby.exe $(cygpath -u '%1') %2 %3 %4 %5 %6 %7 %8 %9" test.rb: p $0, "Succeeded!" At the command line (cmd.exe): G:\>ruby.bat g:\tml\src\test.rb "/mnt/g/tml/src/test.rb" "Succeeded!" $(foo) is equivalent to `foo`. A matter of taste. Anyway, the solution with modifying RUBYLIB or some other env variable should work too -- maybe in a wrapper of the script you're calling. In general, I think mixing cygwin & native win apps isn't a good idea which is why I would suggest to install either ruby4win or tetex4cygwin. Cheers, Thomas.