Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mount -o<TAB> exception #5750

Closed
edgesider opened this issue Mar 19, 2019 · 0 comments
Closed

mount -o<TAB> exception #5750

edgesider opened this issue Mar 19, 2019 · 0 comments
Labels
bug Something that's not working as intended completions
Milestone

Comments

@edgesider
Copy link
Contributor

~ » fish --version
fish, version 3.0.2
~ » echo $version
3.0.2
~ » uname -a
Linux kai-acer 5.0.2-arch1-1-ARCH #1 SMP PREEMPT Thu Mar 14 18:47:49 UTC 2019 x86_64 GNU/Linux
~ » echo $TERM
xterm-256color

I got followed exception while I type mount -o<TAB> in fish shell.

~ » mount -o/usr/share/fish/functions/__fish_complete_mount_opts.fish (line 147): switch: Expected exactly one argument, got 0                                                       14:51:40
        switch (string replace -r '=.*' '=' -- $last_arg)
               ^
        in function “__fish_complete_mount_opts”
            called on standard input
        in command substitution
            called on standard input

I checked the file, I guess because the last_args parameter is empty, causing a switch error.

But I tested the same situation under version 2.7.1 and found that there is no such problem. In this version, although the last_args parameter is also empty, there is no such problem.

@faho faho closed this as completed Mar 19, 2019
@faho faho added bug Something that's not working as intended completions labels Mar 19, 2019
@faho faho added this to the fish 3.1.0 milestone Mar 19, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended completions
Projects
None yet
Development

No branches or pull requests

2 participants