Closed ykhan21 closed 3 months ago
A better solution would be if you could specify in the scoop manifest whether to use a native bash (from git for windows or msys) or a wsl bash (C:\Windows\System32\bash.exe) in generated cmd shims.
@niheaven, https://github.com/ScoopInstaller/Scoop/pull/6006 doesn't work to fix this issue. ani-cli, and apps like it, are expecting to use Git Bash's bash.exe, even when ani-cli is run from cmd.
Prerequisites
Package Name
ani-cli
Expected/Current Behaviour
On cmd and powershell, on certain Windows computers, running
ani-cli
will cause WSL errors. This is because the ani-cli cmd shim, callsbash
, which may link WSL bash, depending on if the computer used WSL. It used to be that the cmd shim with call git for Windows' bash, which did not cause an error. Runningani-cli
on git for windows' bash works, because the ani-cli sh shim is called instead of the cmd shim.Steps to Reproduce
Possible Solution
Replace
bash
with git for windows' bash in the cmd shim. PR #13342 makes this change afterscoop install ani-cli
.Scoop and Buckets Version
Scoop Config
PowerShell Version
Additional Softwares
No response