[英]The terminal shell path "..\..\..\vsCode\git\bin\bash.exe" does not exist in VS Code Windows
[英]Git for Windows: Difference between Git\bin\bash.exe and Git\usr\bin\bash.exe
据我了解,bin \\ bash.exe会调用usr \\ bin \\ bash.exe,它带有一些选项来帮助管理Windows路径,但是找不到任何文档来表明这一点。
我所知道的是,如果我将环境设置为使用Git\\usr\\bin\\
而不是Git\\bin
则脚本似乎无法按预期工作。
一个新的开发箱似乎具有以下设置:
哪里重击
C:\Windows\System32\bash.exe
C:\Program Files\Git\usr\bin\bash.exe
我可以理解wsl是最高的,但是如果bin/bash.exe
是我应该使用的那个,那么我将无法理解第二个条目?
%windir%\\system32\\bash.exe
=由Microsoft商店启用的linux [wsl]环境的任何Windows子系统托管的嵌入式bash shell | 适用于Linux的Windows子系统| | 安装。 与启动菜单快捷方式%windir%\\system32\\wsl.exe ~ -d Ubuntu
启动的单独窗口的替代结果相同,但结果基本相同。
%programfiles%\\git\\bin\\bash.exe
-> %programfiles%\\git\\usr\\bin\\bash.exe + some automatically injected arguments
=内联[main stdin / stdout]由git提供的bash shell位于Windows cmd的顶层.exe命令提示符环境
%programfiles%\\git\\git-bash.exe
= Windows应用程序[winmain] git提供的bash shell,位于Windows cmd.exe命令提示符环境的顶层
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.