From d874c0dff914c7d057c86657a9961b9cc68bf5fa Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 20 Jun 2003 06:22:50 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.c') diff --git a/ruby.c b/ruby.c index b7529b09b..f48898e3f 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]; } -- cgit