Does .bashrc contain syntax errors?What does the 'rc' in `.bashrc`, etc. mean?source .bashrc doesn't workNo bashrc file in my home directoryWhat does . .bashrc actually do?BASH string manipulation, syntax errorsline 63: syntax error near unexpected token `;' in bashrcsyntax error near unexpected token `(' bashWhat does bashrc PS1 check [ “$PS1” = “\s-\v\$ ” ] mean?Linux: bashrc. How to load bashrc content from another file?Bashrc unexpected EOF Error

How do you talk to someone whose loved one is dying?

How to make healing in an exploration game interesting

How to pronounce "I ♥ Huckabees"?

How could a scammer know the apps on my phone / iTunes account?

World War I as a war of liberals against authoritarians?

How could an airship be repaired midflight?

How difficult is it to simply disable/disengage the MCAS on Boeing 737 Max 8 & 9 Aircraft?

Is it insecure to send a password in a `curl` command?

Is it good practice to use Linear Least-Squares with SMA?

Bach's Toccata and Fugue in D minor breaks the "no parallel octaves" rule?

When to use a slotted vs. solid turner?

Examples of transfinite towers

What is the significance behind "40 days" that often appears in the Bible?

Different outputs for `w`, `who`, `whoami` and `id`

Bacteria contamination inside a thermos bottle

Is a party consisting of only a bard, a cleric, and a warlock functional long-term?

What is a ^ b and (a & b) << 1?

Is it true that good novels will automatically sell themselves on Amazon (and so on) and there is no need for one to waste time promoting?

Is "upgrade" the right word to use in this context?

Could the Saturn V actually have launched astronauts around Venus?

What is "focus distance lower/upper" and how is it different from depth of field?

Have the tides ever turned twice on any open problem?

If I can solve Sudoku, can I solve the Travelling Salesman Problem (TSP)? If so, how?

A single argument pattern definition applies to multiple-argument patterns?



Does .bashrc contain syntax errors?


What does the 'rc' in `.bashrc`, etc. mean?source .bashrc doesn't workNo bashrc file in my home directoryWhat does . .bashrc actually do?BASH string manipulation, syntax errorsline 63: syntax error near unexpected token `;' in bashrcsyntax error near unexpected token `(' bashWhat does bashrc PS1 check [ “$PS1” = “\s-\v\$ ” ] mean?Linux: bashrc. How to load bashrc content from another file?Bashrc unexpected EOF Error













1















In the Ubuntu 18.04 LT .bashrc file there is the following:



# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac


Isn't xterm-color) an instance of unbalanced parentheses? And why does the line end with two semicolons?



To be clear, this is not something I wrote. It's in the virgin file, not edited by me.



If there are syntax errors, to whom should I report this?










share|improve this question


























    1















    In the Ubuntu 18.04 LT .bashrc file there is the following:



    # set a fancy prompt (non-color, unless we know we "want" color)
    case "$TERM" in
    xterm-color) color_prompt=yes;;
    esac


    Isn't xterm-color) an instance of unbalanced parentheses? And why does the line end with two semicolons?



    To be clear, this is not something I wrote. It's in the virgin file, not edited by me.



    If there are syntax errors, to whom should I report this?










    share|improve this question
























      1












      1








      1








      In the Ubuntu 18.04 LT .bashrc file there is the following:



      # set a fancy prompt (non-color, unless we know we "want" color)
      case "$TERM" in
      xterm-color) color_prompt=yes;;
      esac


      Isn't xterm-color) an instance of unbalanced parentheses? And why does the line end with two semicolons?



      To be clear, this is not something I wrote. It's in the virgin file, not edited by me.



      If there are syntax errors, to whom should I report this?










      share|improve this question














      In the Ubuntu 18.04 LT .bashrc file there is the following:



      # set a fancy prompt (non-color, unless we know we "want" color)
      case "$TERM" in
      xterm-color) color_prompt=yes;;
      esac


      Isn't xterm-color) an instance of unbalanced parentheses? And why does the line end with two semicolons?



      To be clear, this is not something I wrote. It's in the virgin file, not edited by me.



      If there are syntax errors, to whom should I report this?







      linux ubuntu bash bashrc






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      ArgentArgent

      132




      132




















          1 Answer
          1






          active

          oldest

          votes


















          3














          This is the standard, correct syntax for a bash case statement(known abstractly as a switch statement in general programming), albeit perhaps an odd syntax when compared to Python, Java, or other languages.



          From The Linux Documentation Project:




          Nested if statements might be nice, but as soon as you are confronted
          with a couple of different possible actions to take, they tend to
          confuse. For the more complex conditionals, use the case syntax:



          case EXPRESSION in CASE1) COMMAND-LIST;; CASE2) COMMAND-LIST;; ... CASEN) COMMAND-LIST;; esac






          share|improve this answer
























            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "3"
            ;
            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%2fsuperuser.com%2fquestions%2f1414684%2fdoes-bashrc-contain-syntax-errors%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









            3














            This is the standard, correct syntax for a bash case statement(known abstractly as a switch statement in general programming), albeit perhaps an odd syntax when compared to Python, Java, or other languages.



            From The Linux Documentation Project:




            Nested if statements might be nice, but as soon as you are confronted
            with a couple of different possible actions to take, they tend to
            confuse. For the more complex conditionals, use the case syntax:



            case EXPRESSION in CASE1) COMMAND-LIST;; CASE2) COMMAND-LIST;; ... CASEN) COMMAND-LIST;; esac






            share|improve this answer





























              3














              This is the standard, correct syntax for a bash case statement(known abstractly as a switch statement in general programming), albeit perhaps an odd syntax when compared to Python, Java, or other languages.



              From The Linux Documentation Project:




              Nested if statements might be nice, but as soon as you are confronted
              with a couple of different possible actions to take, they tend to
              confuse. For the more complex conditionals, use the case syntax:



              case EXPRESSION in CASE1) COMMAND-LIST;; CASE2) COMMAND-LIST;; ... CASEN) COMMAND-LIST;; esac






              share|improve this answer



























                3












                3








                3







                This is the standard, correct syntax for a bash case statement(known abstractly as a switch statement in general programming), albeit perhaps an odd syntax when compared to Python, Java, or other languages.



                From The Linux Documentation Project:




                Nested if statements might be nice, but as soon as you are confronted
                with a couple of different possible actions to take, they tend to
                confuse. For the more complex conditionals, use the case syntax:



                case EXPRESSION in CASE1) COMMAND-LIST;; CASE2) COMMAND-LIST;; ... CASEN) COMMAND-LIST;; esac






                share|improve this answer















                This is the standard, correct syntax for a bash case statement(known abstractly as a switch statement in general programming), albeit perhaps an odd syntax when compared to Python, Java, or other languages.



                From The Linux Documentation Project:




                Nested if statements might be nice, but as soon as you are confronted
                with a couple of different possible actions to take, they tend to
                confuse. For the more complex conditionals, use the case syntax:



                case EXPRESSION in CASE1) COMMAND-LIST;; CASE2) COMMAND-LIST;; ... CASEN) COMMAND-LIST;; esac







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited 3 hours ago

























                answered 3 hours ago









                baelxbaelx

                1,478616




                1,478616



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1414684%2fdoes-bashrc-contain-syntax-errors%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

                    Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                    Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

                    Aasi (pallopeli) Navigointivalikko