[
https://issues.apache.org/jira/browse/CASSANDRA-9777?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14659093#comment-14659093
]
David Kua commented on CASSANDRA-9777:
--------------------------------------
https://github.com/dkua/cassandra/tree/cass-9777
I've rebased the branch to be up to date with the current 2.2 branch and added
a commit that changed the warning message to be more detailed as per [~thobbs]
suggestion.
> If you have a ~/.cqlshrc and a ~/.cassandra/cqlshrc, cqlsh will overwrite the
> latter with the former
> ----------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-9777
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9777
> Project: Cassandra
> Issue Type: Bug
> Reporter: Jon Moses
> Assignee: David Kua
> Labels: cqlsh
> Fix For: 2.2.x
>
>
> 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.
> {noformat}
> ~$ cat .cqlshrc
> [authentication]
> ~$ cat .cassandra/cqlshrc
> [connection]
> ~$ cqlsh
> ~$ cat .cqlshrc
> cat: .cqlshrc: No such file or directory
> ~$ cat .cassandra/cqlshrc
> [authentication]
> ~$
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)