In the install path of Git for Windows, what's the difference between ./git-bash.exe and bin/bash.exe and...












2















In the install path of git for windows, I found these 3 exes:



./git-bash.exe,



./bin/bash.exe,



./bin/sh.exe,



Launching any of them would give me a usable terminal.



The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.



What's the difference between them and which should I use?










share|improve this question

























  • The first would be the terminal emulator and bash and sh are shells.

    – fredrik
    Dec 30 '18 at 20:58
















2















In the install path of git for windows, I found these 3 exes:



./git-bash.exe,



./bin/bash.exe,



./bin/sh.exe,



Launching any of them would give me a usable terminal.



The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.



What's the difference between them and which should I use?










share|improve this question

























  • The first would be the terminal emulator and bash and sh are shells.

    – fredrik
    Dec 30 '18 at 20:58














2












2








2








In the install path of git for windows, I found these 3 exes:



./git-bash.exe,



./bin/bash.exe,



./bin/sh.exe,



Launching any of them would give me a usable terminal.



The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.



What's the difference between them and which should I use?










share|improve this question
















In the install path of git for windows, I found these 3 exes:



./git-bash.exe,



./bin/bash.exe,



./bin/sh.exe,



Launching any of them would give me a usable terminal.



The 1st is the default shortcut in the start menu created by the installation, the 2nd is used in the VSCode doc for setting up the integrated terminal in VSCode, the 3rd is mentioned in the ConEmu doc.



What's the difference between them and which should I use?







git git-bash






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 30 '18 at 20:48







ZYinMD

















asked Dec 30 '18 at 19:21









ZYinMDZYinMD

586




586













  • The first would be the terminal emulator and bash and sh are shells.

    – fredrik
    Dec 30 '18 at 20:58



















  • The first would be the terminal emulator and bash and sh are shells.

    – fredrik
    Dec 30 '18 at 20:58

















The first would be the terminal emulator and bash and sh are shells.

– fredrik
Dec 30 '18 at 20:58





The first would be the terminal emulator and bash and sh are shells.

– fredrik
Dec 30 '18 at 20:58












2 Answers
2






active

oldest

votes


















0














The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.



On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).






share|improve this answer































    0














    git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.



    Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)



    You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).






    share|improve this answer


























    • Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

      – ZYinMD
      Dec 31 '18 at 2:28











    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53980686%2fin-the-install-path-of-git-for-windows-whats-the-difference-between-git-bash%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.



    On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).






    share|improve this answer




























      0














      The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.



      On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).






      share|improve this answer


























        0












        0








        0







        The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.



        On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).






        share|improve this answer













        The Bourne-Again Shell orbash is a super-set of sh i.e. whatever you can do in sh can also be done in bash. Bash has more features making it easier to write scripts.



        On the other hand, Git bash is a msys shell included in Git for Windows since Windows natively does not support bash features (unless you add the Windows Sub-sytem for Linux).







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 31 '18 at 4:41









        SaikatSaikat

        2,61053759




        2,61053759

























            0














            git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.



            Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)



            You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).






            share|improve this answer


























            • Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

              – ZYinMD
              Dec 31 '18 at 2:28
















            0














            git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.



            Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)



            You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).






            share|improve this answer


























            • Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

              – ZYinMD
              Dec 31 '18 at 2:28














            0












            0








            0







            git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.



            Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)



            You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).






            share|improve this answer















            git-bashis part of "Git for windows" and provides a command line environment similar to *nix bash.



            Windows 10 includes "Windows subsystem" which could provide a Linux environment inside Windows (which includes sh and bash, a short comparison can be found at Difference between sh and bash)



            You can use any of them for git. It may be an advantage to use the same as your co-workers (if you would need any help with the shell or a script).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Dec 31 '18 at 9:00

























            answered Dec 30 '18 at 22:21









            joranjoran

            1,833915




            1,833915













            • Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

              – ZYinMD
              Dec 31 '18 at 2:28



















            • Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

              – ZYinMD
              Dec 31 '18 at 2:28

















            Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

            – ZYinMD
            Dec 31 '18 at 2:28





            Thanks for linking the Difference between sh and bash, which was useful. However, the question did not ask anything about WSL.

            – ZYinMD
            Dec 31 '18 at 2:28


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53980686%2fin-the-install-path-of-git-for-windows-whats-the-difference-between-git-bash%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Mossoró

            Error while reading .h5 file using the rhdf5 package in R

            Pushsharp Apns notification error: 'InvalidToken'