Ah yes it works from regular Mintty.
On bash for windows, however it doesn’t.
for reference here is the strace from a regular julia.exe
started from the acutal julia folder from bash on windows
maybe someone else understands what’s going on here
execve("./julia.exe", ["./julia.exe"], [/* 16 vars */]) = 0
brk(NULL) = 0x7fffee147000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a70e10000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=36374, ...}) = 0
mmap(NULL, 36374, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1a70e16000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P\t\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1864888, ...}) = 0
mmap(NULL, 3967392, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f1a70630000
mprotect(0x7f1a707ef000, 2097152, PROT_NONE) = 0
mmap(0x7f1a709ef000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bf000) = 0x7f1a709ef000
mmap(0x7f1a709f5000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f1a709f5000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a70e00000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a70df0000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f1a70de0000
arch_prctl(ARCH_SET_FS, 0x7f1a70df0700) = 0
mprotect(0x7f1a709ef000, 16384, PROT_READ) = 0
mprotect(0x7f1a71209000, 4096, PROT_READ) = 0
mprotect(0x7f1a70c25000, 4096, PROT_READ) = 0
munmap(0x7f1a70e16000, 36374) = 0
getpid() = 177
brk(NULL) = 0x7fffee147000
brk(0x7fffee168000) = 0x7fffee168000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=1668976, ...}) = 0
mmap(NULL, 1668976, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f1a70c48000
close(3) = 0
getcwd("/mnt/c/Julia/julia-0.6-latest/bin", 4096) = 34
open("/dev/lxssclient", O_RDWR) = 3
ioctl(3, _IOC(0, 0x00, 0x2f, 0x22), 0x7ffff4deaab0) = 0
open("./julia.exe", O_RDONLY) = 5
ioctl(3, _IOC(0, 0x00, 0x3f, 0x22), 0x7ffff4dea960) = 0
close(5) = 0
open("/mnt/c/Julia/julia-0.6-latest/bin", O_RDONLY) = 5
ioctl(3, _IOC(0, 0x00, 0x3f, 0x22), 0x7ffff4dea960) = 0
close(5) = 0
ioctl(4, _IOC(0, 0x00, 0x97, 0x22), 0x7ffff4deaa08) = 0
ioctl(4, _IOC(0, 0x00, 0xb7, 0x22), 0x7ffff4deaa00) = 0
ioctl(4, _IOC(0, 0x00, 0xb7, 0x22), 0x7ffff4deaa00) = 0
ioctl(4, _IOC(0, 0x00, 0xb7, 0x22), 0x7ffff4deaa00) = 0
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\"\0\0\0\0\0\0\0"..., 194) = 194
read(4, "\0\0\0\0\0\0\0\0*\0\0\0\0\0\0\0", 16) = 16
ioctl(4, _IOC(0, 0x00, 0x9b, 0x22), 0x7ffff4deaaa8) = 0
write(4, "\0\0\0\0\0\0\0\0*\0\0\0\0\0\0\0", 16) = 16
ioctl(5, _IOC(0, 0x00, 0xbf, 0x22), 0x7ffff4deaaa0) = ? ERESTARTSYS (To be restarted if SA_RESTART is set)
--- SIGINT {si_signo=SIGINT, si_code=SI_KERNEL} ---
+++ killed by SIGINT +++