This file is indexed.

/usr/share/bash-completion/completions/20.transform.bash is in topic-tools 1.11.16-3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
function _roscomplete_node_transform
{
    local arg opts
    COMPREPLY=()
    arg="${COMP_WORDS[COMP_CWORD]}"
    local cword=$COMP_CWORD
    for a in $(seq $((COMP_CWORD-1))); do
        if [ -z "${COMP_WORDS[a]//-*}" ]; then
            ((cword--))
        fi
    done
    local words=(${COMP_WORDS[@]//-*})

    if [[ $cword == 3 ]]; then
        opts=`rostopic list 2> /dev/null`
        COMPREPLY=($(compgen -W "$opts" -- ${arg}))
    elif [[ $cword == 5 ]]; then
        opts=`rosmsg list 2> /dev/null`
        COMPREPLY=($(compgen -W "$opts" -- ${arg}))
    fi
}

_sav_transform_roscomplete_rosrun=$(complete | grep -w rosrun | awk '{print $3}')

function is_transform_node
{
    local words=(${COMP_WORDS[@]//-*})
    [ ${#words[@]} -gt 2 ] && \
    [ "${words[1]}" = "topic_tools" ] && \
    [ "${words[2]}" = "transform" ]
}

function _roscomplete_rosrun_transform
{
    if is_transform_node; then
        _roscomplete_node_transform
    else
        eval "$_sav_transform_roscomplete_rosrun"
    fi
}

complete -F "_roscomplete_rosrun_transform" "rosrun"