Hi Keita, Ikumi Keita <ik...@ikumi.que.jp> writes:
> I'm talking about the situation when the command is called through wsl > bash shell. Bash is just a linux binary, so I suspect that it wouldn't > add suffix ".exe" implicitly when it searches executable file in PATH. > If there is only "pdflatex.exe" in PATH and no "pdflatex" (without the > suffix), I guess that bash would insist that "there is no executable > named pdflatex in PATH", ending up with invoking nothing. I've never used WSL, but you're right with your assumption[1]: Run Windows tools from Linux WSL can run Windows tools directly from the WSL command line using [tool-name].exe. For example, notepad.exe. [...] Windows tools must include the file extension, match the file case, and be executable. Non-executables including batch scripts. CMD native commands like dir can be run with cmd.exe /C command. Best, Arash Footnotes: [1] https://docs.microsoft.com/en-us/windows/wsl/filesystems#run-windows-tools-from-linux