-
Notifications
You must be signed in to change notification settings - Fork 400
Open
Description
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
Labels
No labels