$ rea completions bash
exit: 0
--- stdout
_incur_complete_rea() {
    local IFS=$'\013'
    local _COMPLETE_INDEX=${COMP_CWORD}
    local _line=${COMP_LINE-}
    local _completions _output
    if ! _output=$(
        export COMPLETE="bash"
        export _COMPLETE_INDEX="$_COMPLETE_INDEX"
        export _COMPLETE_BASH_LINE="${_line:0:${COMP_POINT:-0}}"
        export _COMPLETE_BASH_FRAGMENT="${2-}"
        'rea' -- "${COMP_WORDS[@]}"
    ); then
        unset COMPREPLY
        return
    fi
    # Split the protocol records without expanding pathname patterns.
    read -r -d '' -a _completions < <(printf '%s\0' "$_output")
    local _nospace=false
    local _nospace_marker=$'\001'
    local _c
    COMPREPLY=()
    for _c in "${_completions[@]}"; do
        if [[ "$_c" == *"$_nospace_marker" ]]; then
            _nospace=true
            COMPREPLY+=("${_c%"$_nospace_marker"}")
        else
            COMPREPLY+=("$_c")
        fi
    done
    if [[ $_nospace == true ]] && type compopt >/dev/null 2>&1; then
        compopt -o nospace
    fi
    return 0
}
complete -o default -o bashdefault -o nosort -F _incur_complete_rea 'rea' 2>/dev/null ||
    complete -o default -o bashdefault -F _incur_complete_rea 'rea'
<end>
--- stderr
<end>
