Skip to content

Handle make targets with / correctly #858

Closed
@ncfavier

Description

@ncfavier

Describe the bug

When completing make foo/<Tab>, a target named foo/bar gets listed as just bar, and completing it removes the foo/ prefix.

Also, completing foo<Tab> inserts a slash and a space. It should not insert a space, just like filename completion works.

To reproduce

  1. git clone --depth=1 https://github.com/NixOS/nix
  2. cd nix
  3. make tests/<Tab>

Versions (please complete the following information)

  • Operating system name/distribution and version: NixOS unstable
  • bash version, echo "$BASH_VERSION": 5.1.16(1)-release
  • bash-completion version, (IFS=.; echo "${BASH_COMPLETION_VERSINFO[*]}"): 2.11

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions