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

funced doesn't react well with no arguments #780

Closed
ghost opened this issue May 19, 2013 · 1 comment
Closed

funced doesn't react well with no arguments #780

ghost opened this issue May 19, 2013 · 1 comment
Milestone

Comments

@ghost
Copy link

ghost commented May 19, 2013

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
@ridiculousfish
Copy link
Member

Fixed as 825a731
Thanks for reporting this

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant