Skip to content

__fish_seen_argument.fish throws exception when autocompleting #8478

Closed

Description

@Kitt3120

Fish version: 3.3.1-643-g566a673e4
Terminal: xterm-256color
Terminal Emulator: Konsole/Yakuake
OS: Arch Linux with Zen Kernel 5.15.4
Works as expected without third-party customizations: No
Asciinema recording: https://asciinema.org/a/Dz0qKoMr8YhjvQrOrQjYrBJR6

Description:
The __fish_seen_argument.fish script used when tab autocompletion is invoked throws an error when used on any directory for me. It does work if I do not type in sudo before the command. The Asciinema recording only shows me doing /etc, but I just found out that it is with every directory as long as I type sudo before it. I think this problem first appeared when I updated to the latest git build yesterday. I am using the aur/fish-git package, but manually installing fish did result in the same issue.

Stacktrace:

/usr/share/fish/functions/__fish_seen_argument.fish (line 8): Invalid index value
            if string match -qr "^-[A-z0-9]*$s[A-z0-9]*\$" -- $t
                                               ^
in function '__fish_seen_argument' with arguments '-s e'
in command substitution

What I already did:

  • Delete .config/fish and .local/share/fish
  • Delete /root/.config/fish and /root/.local/share/fish
  • Build fresh from git
  • Install
  • Run fish_update_completions

Activity

  1. added
    regression
    on Nov 23, 2021
  2. added this to the fish 3.4.0 milestone on Nov 23, 2021
  3. faho commented on Nov 23, 2021

    @faho
    Member

    Oops, sorry! Should be fixed now.

  4. Kitt3120 commented on Nov 23, 2021

    @Kitt3120
    Author

    Oops, sorry! Should be fixed now.

    Haha that was fast, thanks! Will try after lunch.

    Edit:
    Looks like it is fixed! Thank you again, never had an issue fixed that fast before.
    Schönen Abend noch ;)

  5. added a commit that references this issue on Dec 12, 2021
  6. locked as resolved and limited conversation to collaborators on Nov 28, 2022
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

    regression

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions