Skip to content

Unknown command __fish_mktemp in scp completion #11860

@cluosh

Description

@cluosh

When running an scp command with tab completion for the path I get the following error:

Unknown command: __fish_mktemp
fish: 
__fish_mktemp fish-scp
^~~~~~~~~~~~^
in command substitution
in command substitution
fish: Unknown command
            set -l tmp (__fish_mktemp fish-scp)
                       ^~~~~~~~~~~~~~~~~~~~~~~^
in command substitution
usage: scp [-346ABCOpqRrsTv] [-c cipher] [-D sftp_server_path] [-F ssh_config]
           [-i identity_file] [-J destination] [-l limit] [-o ssh_option]
           [-P port] [-S program] [-X sftp_option] source ... target
rm: missing operand

However, this only happens the first time I do it after starting the shell. Subsequent auto-completion works.
System info:

> fish --version
fish, version 4.1.1
> echo $version
4.1.1
> echo $TERM
xterm-kitty
> uname -a
Linux 6.16.8-arch3-1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000 x86_64 GNU/Linux

Tested without third-party customizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that's not working as intendedcompletions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions