Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C56181889D for ; Fri, 10 Jul 2015 18:27:04 +0000 (UTC) Received: (qmail 74398 invoked by uid 500); 10 Jul 2015 18:27:04 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 74362 invoked by uid 500); 10 Jul 2015 18:27:04 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 74345 invoked by uid 99); 10 Jul 2015 18:27:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 18:27:04 +0000 Date: Fri, 10 Jul 2015 18:27:04 +0000 (UTC) From: "Jon Moses (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CASSANDRA-9777) If you have a ~/.cqlshrc and a ~/.cassandra/cqlshrc, cqlsh will overwrite the latter with the former MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jon Moses created CASSANDRA-9777: ------------------------------------ Summary: 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 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)