I'm trying to find a way to run
.rb files that are in the
$PATH in Eshell by following the solution here. I added
t and customized
eshell-interpreter-alist like this:
Regexp: \.rb String: c:/programs/rails/Ruby1.9.3/bin/ruby.exe
But when I run an .rb file in eshell I get an error:
c:\programs\rails\Ruby1.9.3\bin\ruby.exe: No such file or directory -- bill.rb (LoadError)
However it works if I run the file in the directory where it is located or with a full path.
Seems like it is necessary to make interpreter in
bill.rb to its full path somehow to make it work, but I couldn't find a way to do that.