[ 
https://issues.apache.org/jira/browse/CASSANDRA-17448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17508284#comment-17508284
 ] 

Stefan Miklosovic commented on CASSANDRA-17448:
-----------------------------------------------

PSQL has PSQL_HISTORY which is file 
https://www.postgresql.org/docs/9.2/app-psql.html

The current patch the user sent (1) is setting CQL_HISTORY to a directory to 
which "cqlsh_history" file is appended so in fact the history is written to  
$CQL_HISTORY/cqlsh_history which is quite missleading. I would expect that 
CQL_HISTORY will lead to a file, not directory. 

I am trying to modify the patch in such a way that CQL_HISTORY is file, not dir.

(1) https://github.com/apache/cassandra/pull/672

> allow users to change cqlsh history location using env variable
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-17448
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17448
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Stefan Miklosovic
>            Assignee: Stefan Miklosovic
>            Priority: Normal
>             Fix For: 4.1
>
>
> User on GH sent:
> I just started using cassandra and found that it creates history folder in my 
> home directory. I personally don't like it and all my folders follow XDG 
> standard. I found stackoverflow question related to it which says that it's 
> not possible to do without configuring source code of cqlsh.py.
> In this pull request I added a feature to choose history directory using 
> environment variable. The name of variable is CQL_HISTORY. Why ? Because 
> postgres and node-repl use approximately the same convention 
> (NODE_REPL_HISTORY,PSQL_HISTORY). If you want I can change the name.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to