Skip to content

bash complete on Raspberry Pi 5 #129

@gakki2019

Description

@gakki2019

Thank you for reply my question of #126

my.sh

_args() {
    _init_completion -n 2> /dev/null
    local program comparg

    program="${COMP_WORDS[0]}"
    comparg="--complete"

    COMPREPLY=($("$program" "$comparg" bash "$COMP_CWORD" "${COMP_WORDS[@]}" 2> /dev/null))
    [[ $COMPREPLY ]] && return
    _filedir
}

complete -F _args application
cp my.sh to /etc/profile.d/
source /etc/profile

CentOS 9 works well, but on the Raspberry Pi 5, the system cannot boot into the GUI and always stays on the "Login" window.
After removing the complete -F _args command, the Raspberry Pi 5 works well.
Has anyone encountered this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions