Skip to content

global bash completion breaks completion for some PHP scripts #535

@hroncok

Description

@hroncok

Hello,

in Fedora, we got a report from the PHP maintainer that globally installed argcomplete bash completion interferes with completion of some PHP scripts.

To reproduce with pip-installed argcomplete, you need to have some PHP scripts installed. E.g. pie on Fedora 41:

$ podman run --rm -ti fedora:41 /usr/bin/bash
...
# dnf -y install bash-completion pip pie
...
# bash          # this is needed to make bash-completion of pie work
# pie lis[tab]  # completes to: pie list

# pip install argcomplete
...
Successfully installed argcomplete-3.6.2
...
# activate-global-python-argcomplete
...
# exit
# bash
# pie lis[tab]  # completes to nothing

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