funced doesn't react well with no arguments #780

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

Comments

Projects
None yet
1 participant
@ghost

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

This comment has been minimized.

Show comment
Hide comment
@ridiculousfish

ridiculousfish Jun 9, 2013

Member

Fixed as 825a731
Thanks for reporting this

Member

ridiculousfish commented Jun 9, 2013

Fixed as 825a731
Thanks for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment