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

Employee lack of ownership

Violin - Can double stops be played when the strings are not next to each other?

Are all passive ability checks floors for active ability checks?

PTIJ: Who should I vote for? (21st Knesset Edition)

Brexit - No Deal Rejection

How to get the n-th line after a grepped one?

Why is the President allowed to veto a cancellation of emergency powers?

Is there a symmetric-key algorithm which we can use for creating a signature?

What is the relationship between relativity and the Doppler effect?

How to make healing in an exploration game interesting

Print a physical multiplication table

What is the adequate fee for a reveal operation?

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

Does multi-classing into Fighter give you heavy armor proficiency?

New passport but visa is in old (lost) passport

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?

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

Aluminum electrolytic or ceramic capacitors for linear regulator input and output?

How are passwords stolen from companies if they only store hashes?

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

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

et qui - how do you really understand that kind of phraseology?

What's the meaning of a knight fighting a snail in medieval book illustrations?

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



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

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»