Bash terminal stuck in process ([Process Completed])

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












My Bash Terminal is stuck after a bad command.



Even opening new shell instances (cmd T) starts the same hangup ending with a [Process completed] message.



It's rendering bash terminal unusable (cannot type or run any other process). How can I kill the hangup process?



Note: ^C, ^D, ^Z do not work.



enter image description here










share|improve this question

























    up vote
    0
    down vote

    favorite












    My Bash Terminal is stuck after a bad command.



    Even opening new shell instances (cmd T) starts the same hangup ending with a [Process completed] message.



    It's rendering bash terminal unusable (cannot type or run any other process). How can I kill the hangup process?



    Note: ^C, ^D, ^Z do not work.



    enter image description here










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      My Bash Terminal is stuck after a bad command.



      Even opening new shell instances (cmd T) starts the same hangup ending with a [Process completed] message.



      It's rendering bash terminal unusable (cannot type or run any other process). How can I kill the hangup process?



      Note: ^C, ^D, ^Z do not work.



      enter image description here










      share|improve this question













      My Bash Terminal is stuck after a bad command.



      Even opening new shell instances (cmd T) starts the same hangup ending with a [Process completed] message.



      It's rendering bash terminal unusable (cannot type or run any other process). How can I kill the hangup process?



      Note: ^C, ^D, ^Z do not work.



      enter image description here







      bash terminal






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 26 '17 at 19:55









      Growler

      1165




      1165




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          This is on macOS, right?



          As it's difficult to edit the file from a terminal (owing to the fact that the shell will immediately exit), open the file you previously modified (probably ~/.bashrc, ~/.bash_profile, or ~/.profile), from the Finder, in a text editor, and correct the error.



          You should be able to toggle the listing of hidden files in any "Open File" dialog box, or in the Finder itself, by pressing ⌘ CMD+⇧ SHIFT+..



          Another option is simply to rename the file that you think is causing the issue. Again, do this from the Finder.




          Speculating on the cause:



          You may have inadvertently executed exit, possibly unconditionally, or through following some logic branching. Or you may have used set -e or set -o errexit and then had a utility exit with a non-zero exit status (i.e. failing).






          share|improve this answer






















          • Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
            – DopeGhoti
            Sep 26 '17 at 20:18










          • @DopeGhoti That's another good option.
            – Kusalananda
            Sep 26 '17 at 20:23










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          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: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394623%2fbash-terminal-stuck-in-process-process-completed%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          This is on macOS, right?



          As it's difficult to edit the file from a terminal (owing to the fact that the shell will immediately exit), open the file you previously modified (probably ~/.bashrc, ~/.bash_profile, or ~/.profile), from the Finder, in a text editor, and correct the error.



          You should be able to toggle the listing of hidden files in any "Open File" dialog box, or in the Finder itself, by pressing ⌘ CMD+⇧ SHIFT+..



          Another option is simply to rename the file that you think is causing the issue. Again, do this from the Finder.




          Speculating on the cause:



          You may have inadvertently executed exit, possibly unconditionally, or through following some logic branching. Or you may have used set -e or set -o errexit and then had a utility exit with a non-zero exit status (i.e. failing).






          share|improve this answer






















          • Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
            – DopeGhoti
            Sep 26 '17 at 20:18










          • @DopeGhoti That's another good option.
            – Kusalananda
            Sep 26 '17 at 20:23














          up vote
          2
          down vote



          accepted










          This is on macOS, right?



          As it's difficult to edit the file from a terminal (owing to the fact that the shell will immediately exit), open the file you previously modified (probably ~/.bashrc, ~/.bash_profile, or ~/.profile), from the Finder, in a text editor, and correct the error.



          You should be able to toggle the listing of hidden files in any "Open File" dialog box, or in the Finder itself, by pressing ⌘ CMD+⇧ SHIFT+..



          Another option is simply to rename the file that you think is causing the issue. Again, do this from the Finder.




          Speculating on the cause:



          You may have inadvertently executed exit, possibly unconditionally, or through following some logic branching. Or you may have used set -e or set -o errexit and then had a utility exit with a non-zero exit status (i.e. failing).






          share|improve this answer






















          • Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
            – DopeGhoti
            Sep 26 '17 at 20:18










          • @DopeGhoti That's another good option.
            – Kusalananda
            Sep 26 '17 at 20:23












          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          This is on macOS, right?



          As it's difficult to edit the file from a terminal (owing to the fact that the shell will immediately exit), open the file you previously modified (probably ~/.bashrc, ~/.bash_profile, or ~/.profile), from the Finder, in a text editor, and correct the error.



          You should be able to toggle the listing of hidden files in any "Open File" dialog box, or in the Finder itself, by pressing ⌘ CMD+⇧ SHIFT+..



          Another option is simply to rename the file that you think is causing the issue. Again, do this from the Finder.




          Speculating on the cause:



          You may have inadvertently executed exit, possibly unconditionally, or through following some logic branching. Or you may have used set -e or set -o errexit and then had a utility exit with a non-zero exit status (i.e. failing).






          share|improve this answer














          This is on macOS, right?



          As it's difficult to edit the file from a terminal (owing to the fact that the shell will immediately exit), open the file you previously modified (probably ~/.bashrc, ~/.bash_profile, or ~/.profile), from the Finder, in a text editor, and correct the error.



          You should be able to toggle the listing of hidden files in any "Open File" dialog box, or in the Finder itself, by pressing ⌘ CMD+⇧ SHIFT+..



          Another option is simply to rename the file that you think is causing the issue. Again, do this from the Finder.




          Speculating on the cause:



          You may have inadvertently executed exit, possibly unconditionally, or through following some logic branching. Or you may have used set -e or set -o errexit and then had a utility exit with a non-zero exit status (i.e. failing).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Sep 26 '17 at 20:41

























          answered Sep 26 '17 at 20:03









          Kusalananda

          106k14209327




          106k14209327











          • Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
            – DopeGhoti
            Sep 26 '17 at 20:18










          • @DopeGhoti That's another good option.
            – Kusalananda
            Sep 26 '17 at 20:23
















          • Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
            – DopeGhoti
            Sep 26 '17 at 20:18










          • @DopeGhoti That's another good option.
            – Kusalananda
            Sep 26 '17 at 20:23















          Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
          – DopeGhoti
          Sep 26 '17 at 20:18




          Might be easier to simply rename the potentially offending file(s) rather than trying to shoehorn them into TextEdit without accidentally making them non-plaintext files.
          – DopeGhoti
          Sep 26 '17 at 20:18












          @DopeGhoti That's another good option.
          – Kusalananda
          Sep 26 '17 at 20:23




          @DopeGhoti That's another good option.
          – Kusalananda
          Sep 26 '17 at 20:23

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394623%2fbash-terminal-stuck-in-process-process-completed%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Peggy Mitchell

          Palaiologos

          The Forum (Inglewood, California)