Skip to content

funced doesn't react well with no arguments #780

@ghost

Description

Output that I get when I just type funced with no arguments:

switch: Expected exactly one argument, got 0
/usr/share/fish/functions/funced.fish (line 43):     switch $funcname
                                                     ^
in function “funced”,
    called on standard input,


       switch - switch - conditionally execute a block of commands

switch - conditionally execute a block of commands
   Synopsis
       switch VALUE; [case [WILDCARD...]; [COMMANDS...]; ...] end

switch: Type “help switch” for related documentation

N_, alias, cd, contains_seq, delete-or-exit, dirh, dirs, down-or-search, eval,
fish_command_not_found_setup, fish_config, fish_default_key_bindings,
fish_greeting, fish_indent, fish_prompt, fish_sigtrap_handler,
fish_update_completions, funced, funcsave, grep, help, history, isatty, la, ll,
ls, lsgit, man, math, mimedb, mkdircd, nextd, nextd-or-forward-word, open, pacman,
popd, prevd, prevd-or-backward-word, prompt_pwd, psub, pushd, seq, setenv, sgrep,
trap, type, umask, up-or-search, vared,
read: Invalid character “
” in variable name. Only alphanumerical characters and underscores are valid in a variable name.
/usr/share/fish/functions/funced.fish (line 76):         if read -p $prompt -c "$init" -s cmd
                                                         ^
in function “funced”,
    called on standard input,


       read - read - read line of input into variables

read - read line of input into variables
   Synopsis
       read [OPTIONS] [VARIABLES...]

read: Type “help read” for related documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions