We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b20963 commit 46ce08eCopy full SHA for 46ce08e
library/std/src/sys/pal/unix/os.rs
@@ -282,7 +282,7 @@ pub fn current_exe() -> io::Result<PathBuf> {
282
return getcwd().map(|cwd| cwd.join(path))?.canonicalize();
283
}
284
// Search PATH to infer current_exe.
285
- if let Some(p) = getenv(OsStr::from_bytes("PATH".as_bytes())) {
+ if let Some(p) = env::var_os(OsStr::from_bytes("PATH".as_bytes())) {
286
for search_path in split_paths(&p) {
287
let pb = search_path.join(&path);
288
if pb.is_file()
0 commit comments