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

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.9, 2.2.1, 3.0 beta 1
    • None
    • 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

              dkua David Kua
              jmoses Jon Moses
              David Kua
              Tom Hobbs
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: