summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
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 b7529b09b41..f48898e3f11 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];
}