Skip to content

issue with alias on rsync #1370

@musinsky

Description

@musinsky

Describe the bug

Not correct bash completion for alias on rsync command. Please see bellow in examples.

To reproduce

  • Fedora 41, bash 5.2.32(1)-release, bash-completion v2.16.0 (2024-12)
$ alias rrr=rsync
$ _completion_loader rsync; complete -p rsync
complete -o nospace -F _comp_cmd_rsync rsync
$ complete -o nospace -F _comp_cmd_rsync rsync rrr
$ rsync --<Tab>
Display all 150 possibilities? (y or n)
$ rrr --<Tab>
--daemon            --no-detach         --no-i-r            --old-d             
--no-blocking-io    --no-inc-recursive  --no-whole-file     --old-dirs          
$ # why not all 150 possibilities ?!

Expected behavior

  • RHEL 9.5, bash 5.1.8(1)-release, bash-completion v2.11 (2020-07)
$ alias rrr=rsync
$ _completion_loader rsync; complete -p rsync
complete -o nospace -F _rsync rsync
$ complete -o nospace -F _rsync rsync rrr
$ rsync --<Tab>
Display all 115 possibilities? (y or n)
$ rrr --<Tab>
Display all 115 possibilities? (y or n)
$

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