You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Murukesh Mohanan (JIRA)" <ji...@apache.org> on 2017/08/28 04:19:00 UTC
[jira] [Commented] (CASSANDRA-9430) Add startup options to cqlshrc
[ https://issues.apache.org/jira/browse/CASSANDRA-9430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16143349#comment-16143349 ]
Murukesh Mohanan commented on CASSANDRA-9430:
---------------------------------------------
(Just a note to anybody interested in implementing this.) If this were to be implemented with an option like Python's {{-i}}, I still wouldn't expect {{echo "paging off;" | cqlsh -i}} to give me an interactive shell. That would require {{cqlsh}} to detect whether it is connected to a TTY (since stdin naturally would be from the pipe), then provide a prompt on that TTY, and read from that TTY. That could be done ({{sudo}} is a command which does that), but it would be quite hacky. I think it would be best if cqlsh didn't try to play guessing games with stdin, and simply take it as given. Reading from a file given as an option argument is a different case, of course.
> Add startup options to cqlshrc
> ------------------------------
>
> Key: CASSANDRA-9430
> URL: https://issues.apache.org/jira/browse/CASSANDRA-9430
> Project: Cassandra
> Issue Type: Improvement
> Components: Tools
> Reporter: Jeremy Hanna
> Priority: Minor
> Labels: cqlsh, lhf
>
> There are certain settings that would be nice to set defaults for in the cqlshrc file. For example, a user may want to set the paging to off by default for their environment. You can't simply do
> {code}
> echo "paging off;" | cqlsh
> {code}
> because this would disable paging and immediately exit cqlsh.
> So it would be nice to have a section of the cqlshrc to include default settings on startup.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org