Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9777

If you have a ~/.cqlshrc and a ~/.cassandra/cqlshrc, cqlsh will overwrite the latter with the former

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 2.1.9, 2.2.1, 3.0 beta 1
    • Component/s: None
    • Labels:
    • Severity:
      Normal

      Description

      If you have a .cqlshrc file, and a ~/.cassandra/cqlshrc file, when you run `cqlsh`, it will overwrite the latter with the former. https://github.com/apache/cassandra/blob/trunk/bin/cqlsh#L202

      If the 'new' path exists (~/.cassandra/cqlsh), cqlsh should either WARN or just leave the files alone.

      ~$ cat .cqlshrc
      [authentication]
      ~$ cat .cassandra/cqlshrc
      [connection]
      ~$ cqlsh
      ~$ cat .cqlshrc
      cat: .cqlshrc: No such file or directory
      ~$ cat .cassandra/cqlshrc
      [authentication]
      ~$
      
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkua David Kua
                Reporter:
                jmoses Jon Moses
                Authors:
                David Kua
                Reviewers:
                Tom Hobbs
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: