Skip to content

Fish Autocompletion Script Bug #3

@nts-jkaufmann

Description

@nts-jkaufmann

Hi,

there's a bug in the autocompletion script for fish. When trying to autocomplete, it shows the following error:

(line 1): Unsupported use of '='. To run 'acs' with a modified environment, please use 'env ACS_ACTIVE_HELP=0 acs…'
begin; ACS_ACTIVE_HELP=0 acs __complete  ap
       ^
from sourcing file -
        called on line 61 of file /usr/share/fish/functions/eval.fish

in function “eval”
        called on line 11 of file ~/.config/fish/completions/acs.fish

in command substitution
        called on line 35 of file ~/.config/fish/completions/acs.fish

in function “__acs_perform_completion”
        called on line 62 of file ~/.config/fish/completions/acs.fish

in command substitution
        called on line 129 of file ~/.config/fish/completions/acs.fish

in function “__acs_prepare_completions”
        called on standard input

in command substitution
        called on standard input

As suggested, the env command can be used to fix it in line 22:

set -l requestComp "env ACS_ACTIVE_HELP=0 $args[1] __complete $args[2..-1] $lastArg"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions