Open Doekin opened 7 months ago
By the way, init script runs twice when .bashrc
and .bash_profile
both exists
By the way, init script runs twice when
.bashrc
and.bash_profile
both exists
This is probably a generic issue that deserves its own thread, mind creating that? I imagine it's not Windows specific.
Git bash launches with error: No such file or directory
For clarity: git bash uses a fork of msys2, and this issue falls under the umbrella of Windows cygwin/msys2 problems.
The problem occurs as a result of cygpath.exe's path translation.
However, cygpath is correct to do this, because it ensures that paths with spaces in them work correctly.
For completion's sake, I should note that forward slash is fine too
Behavior
Git bash launches with error: No such file or directory
Possible cause
The path of init script in
.bashrc
and.bash_profile
contains backslash that is mistakenly parsed as escape charactersource C:\Users\leemu\AppData\Roaming\dystroy\broot\config\launcher\bash\br
Possible solution
Quote the path. It works on git bash (Windows10) and bash/zsh (Linux)