Syntax error while running bash script











up vote
0
down vote

favorite












I'm trying to run a script in terminal as follows:



bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


When I run it I get the following error:



-sh: syntax error near unexpected token `('


Anyone know why??



Thanks xx










share|improve this question




























    up vote
    0
    down vote

    favorite












    I'm trying to run a script in terminal as follows:



    bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


    When I run it I get the following error:



    -sh: syntax error near unexpected token `('


    Anyone know why??



    Thanks xx










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm trying to run a script in terminal as follows:



      bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


      When I run it I get the following error:



      -sh: syntax error near unexpected token `('


      Anyone know why??



      Thanks xx










      share|improve this question















      I'm trying to run a script in terminal as follows:



      bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


      When I run it I get the following error:



      -sh: syntax error near unexpected token `('


      Anyone know why??



      Thanks xx







      command-line bash






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 15 at 6:04









      muru

      134k19282482




      134k19282482










      asked Nov 15 at 6:03









      dworn21

      1




      1






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote













          <(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:



          $ bash
          $ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


          Ask your system admin how to change your login shell to bash.






          share|improve this answer





















          • Thanks - still getting the error though
            – dworn21
            Nov 15 at 6:16






          • 2




            Did you actually run bash? Are you using Ubuntu?
            – muru
            Nov 15 at 6:17











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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',
          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%2faskubuntu.com%2fquestions%2f1093070%2fsyntax-error-while-running-bash-script%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote













          <(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:



          $ bash
          $ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


          Ask your system admin how to change your login shell to bash.






          share|improve this answer





















          • Thanks - still getting the error though
            – dworn21
            Nov 15 at 6:16






          • 2




            Did you actually run bash? Are you using Ubuntu?
            – muru
            Nov 15 at 6:17















          up vote
          2
          down vote













          <(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:



          $ bash
          $ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


          Ask your system admin how to change your login shell to bash.






          share|improve this answer





















          • Thanks - still getting the error though
            – dworn21
            Nov 15 at 6:16






          • 2




            Did you actually run bash? Are you using Ubuntu?
            – muru
            Nov 15 at 6:17













          up vote
          2
          down vote










          up vote
          2
          down vote









          <(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:



          $ bash
          $ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


          Ask your system admin how to change your login shell to bash.






          share|improve this answer












          <(...) aka process substitution is bash syntax, and you're executing this in sh (note that your error starts with -sh). It seems your login shell is sh, not bash, for some reason. The simplest way here would be to switch to bash, and then run the command:



          $ bash
          $ bash <( curl https://raw.githubusercontent.com/EpicCrypto/Epic-MN-Install/master/install.sh )


          Ask your system admin how to change your login shell to bash.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 15 at 6:07









          muru

          134k19282482




          134k19282482












          • Thanks - still getting the error though
            – dworn21
            Nov 15 at 6:16






          • 2




            Did you actually run bash? Are you using Ubuntu?
            – muru
            Nov 15 at 6:17


















          • Thanks - still getting the error though
            – dworn21
            Nov 15 at 6:16






          • 2




            Did you actually run bash? Are you using Ubuntu?
            – muru
            Nov 15 at 6:17
















          Thanks - still getting the error though
          – dworn21
          Nov 15 at 6:16




          Thanks - still getting the error though
          – dworn21
          Nov 15 at 6:16




          2




          2




          Did you actually run bash? Are you using Ubuntu?
          – muru
          Nov 15 at 6:17




          Did you actually run bash? Are you using Ubuntu?
          – muru
          Nov 15 at 6:17


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1093070%2fsyntax-error-while-running-bash-script%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

          How to send String Array data to Server using php in android

          Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

          Is anime1.com a legal site for watching anime?