Git for Windows:Git \ bin \ bash.exeとGit \ usr \ bin \ bash.exeの違い

アラステアテイラー

私が理解していることから、bin \ bash.exeはusr \ bin \ bash.exeを呼び出します。Windowsパスの管理に役立ついくつかのオプションがあると思いますが、それを示すドキュメントが見つかりません。

私が知っているのは、環境をではGit\usr\bin\なく使用するように設定している場合、スクリプトが期待どおりに機能しないように見えることだけGit\binです。

新しい開発ボックスには、次の設定があるようです。

ここでbash

C:\Windows\System32\bash.exe

C:\Program Files\Git\usr\bin\bash.exe

wslがトップであることは理解できますが、2番目のエントリbin/bash.exeが使用することになっている場合理解できませんか?

myusrn

%windir%\system32\bash.exe=マイクロソフトストアを使用して有効にしたLinux [wsl]環境用のWindowsサブシステムによってホストされるインラインbashシェル| Linux用のWindowsサブシステム| | インストール。代替ですが、メニューショートカットを%windir%\system32\wsl.exe ~ -d Ubuntu起動する別のウィンドウと本質的に同じ結果です。

%programfiles%\git\bin\bash.exe-> %programfiles%\git\usr\bin\bash.exe + some automatically injected arguments=インライン[mainstdin / stdout] Windowsのcmd.exeコマンドプロンプト環境の上に階層化されたgitによって提供されるbashシェル

%programfiles%\git\git-bash.exe = Windowsアプリ[winmain] Windowscmd.exeコマンドプロンプト環境の上に階層化されたgitによって提供されるbashシェル

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Git for Windowsのインストールパスで、。/ git-bash.exeとbin / bash.exeおよびbin / sh.exeの違いは何ですか?

分類Dev

「#!/ usr / bin / env bash」と「#!/ usr / bin / bash」の違いは何ですか?

分類Dev

Windowsのgit-bash.exeとsh.exeの違いは何ですか?

分類Dev

Where is the /usr folder in mintty (Git Bash for Windows)?

分類Dev

/ binと/ usr / binの違い

分類Dev

/ usr / binと/ usr / local / binの違い

分類Dev

Windowsでは、binディレクトリとcmdディレクトリの違い(「C:\ ProgramFiles \ git \ cmd | bin \ git.exe」のコンテキストで)

分類Dev

/ usr / binからgitを削除する

分類Dev

ps出力のbash、-bash、/ bin / bashの違い

分類Dev

エイリアス:.bash_rc、.bash_aliases、/ usr / local / binの違い

分類Dev

Git GUI、Git Bash、Git CMDの違い

分類Dev

Linuxでの/ usr / binと/ usr / local / bin

分類Dev

/usr/bin/env -i /bin/bash --norc --noprofile の後、PATH は空ではありません

分類Dev

Node.js bash:/ usr / local / bin / node:Permission denied

分類Dev

bash:/ usr / bin / top:入出力エラー

分類Dev

Dockerエグゼキューター/ usr / bin / bashを使用したGitlab-CI:行90:git:コマンドが見つかりません

分類Dev

/ bin、/ sbin、/ usr / bin、/ usr / sbin、/ usr / local / bin、/ usr / local / sbinの違い

分類Dev

/ bin、/ sbin、/ usr / bin、/ usr / sbin、/ usr / local / bin、/ usr / local / sbinの違い

分類Dev

VS Code が /usr/bin/bash を見つけられない

分類Dev

Javaでの/ usr / bin / env bash -c "コマンド"の実行

分類Dev

#!/ usr / bin / env bashが#!/ bin / bashよりも優れているのはなぜですか?

分類Dev

Renaming a file in Git Bash on Windows

分類Dev

/ usr / bin / envまたは/ binからbashを開始します

分類Dev

#!/ bin / bash指数

分類Dev

#!/ bin / bash指数

分類Dev

/ binと/ usr / bin /の違いは何ですか?

分類Dev

gitbashで「git」を実行できません...「bash:/ mingw32 / bin / git:不正なアドレス」

分類Dev

bashのprintfが/ usr / bin / printfよりも速いのはなぜですか?

分類Dev

msys2 \ usr \ binのgcc.exeとmsys2 \ mingww64 \ binのgcc.exeの違いは何ですか?

Related 関連記事

  1. 1

    Git for Windowsのインストールパスで、。/ git-bash.exeとbin / bash.exeおよびbin / sh.exeの違いは何ですか?

  2. 2

    「#!/ usr / bin / env bash」と「#!/ usr / bin / bash」の違いは何ですか?

  3. 3

    Windowsのgit-bash.exeとsh.exeの違いは何ですか?

  4. 4

    Where is the /usr folder in mintty (Git Bash for Windows)?

  5. 5

    / binと/ usr / binの違い

  6. 6

    / usr / binと/ usr / local / binの違い

  7. 7

    Windowsでは、binディレクトリとcmdディレクトリの違い(「C:\ ProgramFiles \ git \ cmd | bin \ git.exe」のコンテキストで)

  8. 8

    / usr / binからgitを削除する

  9. 9

    ps出力のbash、-bash、/ bin / bashの違い

  10. 10

    エイリアス:.bash_rc、.bash_aliases、/ usr / local / binの違い

  11. 11

    Git GUI、Git Bash、Git CMDの違い

  12. 12

    Linuxでの/ usr / binと/ usr / local / bin

  13. 13

    /usr/bin/env -i /bin/bash --norc --noprofile の後、PATH は空ではありません

  14. 14

    Node.js bash:/ usr / local / bin / node:Permission denied

  15. 15

    bash:/ usr / bin / top:入出力エラー

  16. 16

    Dockerエグゼキューター/ usr / bin / bashを使用したGitlab-CI:行90:git:コマンドが見つかりません

  17. 17

    / bin、/ sbin、/ usr / bin、/ usr / sbin、/ usr / local / bin、/ usr / local / sbinの違い

  18. 18

    / bin、/ sbin、/ usr / bin、/ usr / sbin、/ usr / local / bin、/ usr / local / sbinの違い

  19. 19

    VS Code が /usr/bin/bash を見つけられない

  20. 20

    Javaでの/ usr / bin / env bash -c "コマンド"の実行

  21. 21

    #!/ usr / bin / env bashが#!/ bin / bashよりも優れているのはなぜですか?

  22. 22

    Renaming a file in Git Bash on Windows

  23. 23

    / usr / bin / envまたは/ binからbashを開始します

  24. 24

    #!/ bin / bash指数

  25. 25

    #!/ bin / bash指数

  26. 26

    / binと/ usr / bin /の違いは何ですか?

  27. 27

    gitbashで「git」を実行できません...「bash:/ mingw32 / bin / git:不正なアドレス」

  28. 28

    bashのprintfが/ usr / bin / printfよりも速いのはなぜですか?

  29. 29

    msys2 \ usr \ binのgcc.exeとmsys2 \ mingww64 \ binのgcc.exeの違いは何ですか?

ホットタグ

アーカイブ