Skip to content

__fish_complete_list adds --option= name for each item #11508

Description

@exploide

fish version 4.0.1 on Fedora 42 in Gnome Terminal

I think there is a regression with the behavior of __fish_complete_list, which occurs when the = sign is used after the long option. The --option= part is then repeated for each item completed.
Example:

Type usermod --groups= and complete one group. Then go back, add a , and complete another group. Now the commandline is like usermod --groups=--groups=abrt,adm.

I also checked with an old fish version 3.6.0 on Debian stable and there it works as expected.

Activity

  1. added
    regressionSomething that used to work, but was broken, especially between releases
    on May 18, 2025
  2. added this to the fish 4.0.3 milestone on May 18, 2025
  3. krobelus commented on May 18, 2025

    @krobelus
    Contributor
  4. exploide commented on May 18, 2025

    @exploide
    ContributorAuthor

    There is another regression. Maybe it is related to the change you mentioned, so I note this here. If you say this is completely different I can open a new issue.

    With __fish_complete_list, if a completion item's description contains a literal \n then it is turned into a real newline and breaks the completion item. With older fish, the literal \n is preserved and shown in the description as expected.

  5. krobelus commented on Jun 21, 2025

    @krobelus
    Contributor

    \n then it is turned into a real newline

    fixed that one as well

  6. added a commit that references this issue on Jun 21, 2025
    320ebb6
  7. locked as resolved and limited conversation to collaborators on Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    regressionSomething that used to work, but was broken, especially between releases

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions