profile
viewpoint

Ask questionscompletions/zpool.fish:46 – "test: Missing argument at index 2" for `zpool replace`

Observed on fish: 3.1.0 @ eoan x86_64

I typed sudo zpool replace z4tank crypt-10ed56d2-e569-4d48-99c8-3e0c2b7780b4 /de[TAB] and received the following stack. Unfortunately I'm not shell savvy enough to debug/fix the issue.

test: Missing argument at index 2

/usr/share/fish/completions/zpool.fish (Zeile 46): 
    if test $OS = 'Linux'
       ^
in function '__fish_zpool_list_available_vdevs'
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 54 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in function '__fish_complete_subcommand' with arguments '--commandline zpool replace z4tank crypt-10ed56d2-e569-4d48-99c8-3e0c2b7780b4 /de'
	called on line 37 of file /usr/share/fish/completions/sudo.fish
in function '__fish_complete_sudo_subcommand'
in command substitution

(Type 'help test' for related documentation)
test: Missing argument at index 2

/usr/share/fish/completions/zpool.fish (Zeile 48): 
    else if test $OS = 'FreeBSD'
            ^
in function '__fish_zpool_list_available_vdevs'
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 54 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in function '__fish_complete_subcommand' with arguments '--commandline zpool replace z4tank crypt-10ed56d2-e569-4d48-99c8-3e0c2b7780b4 /de'
	called on line 37 of file /usr/share/fish/completions/sudo.fish
in function '__fish_complete_sudo_subcommand'
in command substitution

(Type 'help test' for related documentation)
test: Missing argument at index 2

/usr/share/fish/completions/zpool.fish (Zeile 50): 
    else if test $OS = 'SunOS'
            ^
in function '__fish_zpool_list_available_vdevs'
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 1 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in command substitution
	called on line 54 of file /usr/share/fish/functions/__fish_complete_subcommand.fish
in function '__fish_complete_subcommand' with arguments '--commandline zpool replace z4tank crypt-10ed56d2-e569-4d48-99c8-3e0c2b7780b4 /de'
	called on line 37 of file /usr/share/fish/completions/sudo.fish
in function '__fish_complete_sudo_subcommand'
in command substitution

(Type 'help test' for related documentation)
fish-shell/fish-shell

Answer questions bentolor

Awesome, @faho : Thanks for the super-fast fix!

useful!

Related questions

MacOS 10.15 Beta - Slow Fish Prompts hot 2
Consider supporting gitstatus with fish git prompt? - fish-shell hot 1
Cannot save multi-line output in a variable (support $() command substitution syntax) hot 1
source:https://uonfu.com/
Github User Rank List