Bug 239565

Summary: shells/fish: __fish_complete_mount_opts.fish (line 146): switch: Expected exactly one argument, got 0
Product: Ports & Packages Reporter: Martin Filla <freebsd>
Component: Individual Port(s)Assignee: Alan Somers <asomers>
Status: Closed Not Accepted    
Severity: Affects Some People CC: asomers
Priority: --- Keywords: needs-qa
Version: LatestFlags: koobs: maintainer-feedback? (asomers)
koobs: merge-quarterly?
Hardware: amd64   
OS: Any   

Description Martin Filla 2019-07-31 19:39:35 UTC
Hi, 
i use fish shell but for mount -t ext have exception

sudo mount -t ext3 -o/usr/local/share/fish/functions/

    switch (string replace -r '=.*' '=' -- $last_arg)
           ^
in function '__fish_complete_mount_opts'
	called on line 35 of file /usr/local/share/fish/completions/sudo.fish

in command substitution
	called on line 70 of file /usr/local/share/fish/completions/sudo.fish

in function '__fish_complete_sudo_subcommand'
	called on standard input

in command substitution
	called on standard input
Comment 1 Martin Filla 2019-07-31 19:40:43 UTC
fish, version 3.0.2
Comment 2 Alan Somers freebsd_committer freebsd_triage 2019-10-14 17:13:28 UTC
I can reproduce this problem, but it's an upstream issue.  FreeBSD doesn't manage the completion files ourselves.  And in fact, it looks like upstream has already fixed the issue.

https://github.com/fish-shell/fish-shell/issues/5750