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

Fish cannot run batch files on Windows #6257

Closed
amyspark opened this issue Oct 28, 2019 · 2 comments
Closed

Fish cannot run batch files on Windows #6257

amyspark opened this issue Oct 28, 2019 · 2 comments
Labels

Comments

@amyspark
Copy link

Terminal: cygwin (MINGW64_NT-10.0-18362 Windows 3.0.7-338.x86_64 2019-07-03 15:16 UTC x86_64 Msys)

Fish version: 3.0.2 (installed from the Git-Bash SDK)

Hey all,

Bash from Git-Bash can run batch files directly (even though, for obvious reasons, they lack the shebang and are not marked as executable by ls -xla). Doing the same in Fish results in:

fish: Unknown command tlmgr.bat

and, when run from the folder itself,

fish: The file '/d/tlpretest/bin/win32/tlmgr.bat' is not executable by this user

I don't know if this is a problem with Fish itself or with my setup.

@zanchey
Copy link
Member

zanchey commented Oct 31, 2019

I'm a bit surprised that that works in Git-Bash, because all the posts I can find online suggest that it doesn't; it might be worth asking the Git-Bash developers first if you can definitely reproduce this.

@ronnac
Copy link

ronnac commented Dec 10, 2020

You need to call the batch file with winpty. You can create an alias for that.

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

No branches or pull requests

3 participants