前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >去掉 C:/Program Files/Git 在GitBash执行 .sh 脚本

去掉 C:/Program Files/Git 在GitBash执行 .sh 脚本

原创
作者头像
rabbit_lei
发布2024-06-07 11:33:21
1050
发布2024-06-07 11:33:21

When you run a .sh script in the Git Bash, there is an annoying thing is that the 'C:/Program Files/Git' will be added in front of the leading slash /

java.io.FileNotFoundException: C:\Program Files\Git\kafka_2.13-3.7.0\ssl_certs_bak\ca-cert (The system cannot find the path specified)

Found the solution, run the following in the Git Bash

代码语言:javascript
复制
export MSYS_NO_PATHCONV=1

References:

https://stackoverflow.com/questions/39632924/git-bash-is-adding-its-current-path-to-one-of-the-parameter

https://stackoverflow.com/questions/7250130/how-to-stop-mingw-and-msys-from-mangling-path-names-given-at-the-command-line/34386471#34386471

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档