summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-20 06:22:50 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-20 06:22:50 +0000
commit65ba3eba645a61ae9995f9f1e88cab6150c858a7 (patch)
tree65059b38fc55fe27377314c663426f71be81bccc /ruby.c
parent068bc7e43a7e88d9d48aa627a846ef5f22660694 (diff)
* defines.h (PATH_ENV): name of PATH environment. [new].
* defines.h (ENV_IGNORECASE): define for case insensitive platforms to access environment variables. * dln.c (dln_find_exe): use PATH_ENV instead of "PATH". * hash.c (env_delete, rb_f_getenv, env_fetch, rb_env_path_tainted, env_aset): ditto. * ruby.c (proc_options): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ruby.c b/ruby.c
index b7529b0..f48898e 100644
--- a/ruby.c
+++ b/ruby.c
@@ -726,7 +726,7 @@ proc_options(argc, argv)
script = dln_find_file(argv[0], path);
}
if (!script) {
- script = dln_find_file(argv[0], getenv("PATH"));
+ script = dln_find_file(argv[0], getenv(PATH_ENV));
}
if (!script) script = argv[0];
}