Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way around path translations and /cygdrive mounting #93

Open
ManasJayanth opened this issue Jun 21, 2023 · 0 comments
Open

Way around path translations and /cygdrive mounting #93

ManasJayanth opened this issue Jun 21, 2023 · 0 comments

Comments

@ManasJayanth
Copy link
Member

let tmpFileName =
Printf.sprintf(
"__esy-bash__%s__%s__.sh",
string_of_int(Hashtbl.hash(command)),
string_of_int(nonce^),
);
let tempFilePath =
Sys.getenv(Sys.unix ? "TMPDIR" : "TMP") ++ pathDelimStr ++ tmpFileName;
let cygwinSymlinkVar = "CYGWIN=winsymlinks:nativestrict";
let bashCommandWithDirectoryPreamble =
Printf.sprintf(
"mount -c /cygdrive -o binary,noacl,posix=0,user > /dev/null; \ncd \"%s\";\n%s;",
normalizePath(Sys.getcwd()),
command,
);

This is costs time. Can we get native Windows paths understood in the cygwin/msys layer?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant