You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Alex Batyrshin (Jira)" <ji...@apache.org> on 2024/10/13 12:56:00 UTC

[jira] [Comment Edited] (CASSANDRA-19999) debian bash completion for nodetool/cqlsh is not working

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

Alex Batyrshin edited comment on CASSANDRA-19999 at 10/13/24 12:55 PM:
-----------------------------------------------------------------------

I've tried several ways:
{code:java}
source /etc/profile.d/bash_completion.sh 
source /usr/share/bash-completion/bash_completion
source /usr/share/bash-completion/completions/nodetool{code}


Looks like `have` is outdated and deprecated. Updated PR from `type` to `_have`


was (Author: 0x62ash):
Looks like `have` is outdated and deprecated. Updated PR from `type` to `_have`

> debian bash completion for nodetool/cqlsh is not working
> --------------------------------------------------------
>
>                 Key: CASSANDRA-19999
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19999
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Alex Batyrshin
>            Priority: Normal
>
> I tried to enable nodetool/cqlsh completion and got an error:
> {code:java}
> nodetool-completion:18: command not found: have {code}
> Source for this line
> {code:java}
>     16    #
>     17    #
>  >> 18    have nodetool && have cqlsh &&
>     19    {
>     20
>     21        show_keyspaces()
>     22        {
>     23            local ks=$(get_keyspaces)
>     24            COMPREPLY=( $(compgen -W "$ks" -- "$1") )
>     25        } {code}
> I don't know from which debian package the `have` is, but I think it's better to use bash builtin function `type` 
> Fix for 4.0: [https://github.com/apache/cassandra/pull/3613]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org