mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (str_new4): should not preserve FL_TAINT status in the
internal shared string. [ruby-dev:21601] * string.c (rb_str_new4): ditto. * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values. * process.c: ditto. [ruby-dev:38521] * lib/debug.rb (debug_command): should enter emacs mode when assigned any value to the environment variable "EMACS". On Meadow, (getenv "EMACS") is "meadow". git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b6f1c0e284
commit
1184373d86
6 changed files with 63 additions and 39 deletions
|
@ -1,10 +1,13 @@
|
|||
module EnvUtil
|
||||
def rubybin
|
||||
if File.exist? "miniruby" or File.exist? "miniruby.exe"
|
||||
"./miniruby"
|
||||
else
|
||||
"ruby"
|
||||
miniruby = "miniruby"
|
||||
3.times do
|
||||
if File.exist? miniruby or File.exist? miniruby+".exe"
|
||||
return File.expand_path(miniruby)
|
||||
end
|
||||
miniruby = "../"+miniruby
|
||||
end
|
||||
"ruby"
|
||||
end
|
||||
module_function :rubybin
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue