Closed
Description
Hello!
(This is probably just another case of #37380)
I'm working on #32665 and my implementation uses default pager executables depending on the platform. (less
for *nix, more
for Windows)
I spawn pager process like this
let pager = env::var("PAGER").unwrap_or(String::from("more"));
Command::new(pager).arg(file_path).output()
And that fails to run on Windows 10 due to this line: src/libstd/sys/windows/process.rs#L145
Since more
is actually more.com
, it needs to be executed with a different suffix than hardcoded .exe
There was a note about CreateProcess
from @afiune but I don't know how that relates.
Thanks a lot!