Skip to content

Error upgrading Fish #2189

@rpacheco-aa

Description

@rpacheco-aa

I upgraded to the latest fish using Macports and in the end of the process was left with this error:

/opt/local/share/fish/functions/fish_prompt.fish (line 16): function prompt_pwd -V args_pre -V args_post --description "Print the current working directory, shortened to fit the prompt"
                                                            ^
in . (source) call of file '/opt/local/share/fish/functions/prompt_pwd.fish',
    called on line 14 of file '/opt/local/share/fish/functions/fish_prompt.fish',

in command substitution
    called on line 6 of file '/opt/local/share/fish/functions/fish_prompt.fish',

in command substitution
    called on line 26 of file '/opt/local/share/fish/functions/fish_prompt.fish',

in function 'fish_prompt',
    called on standard input,

in command substitution
    called on standard input,


       function ‐‐ create a function

   Synopsis
       function [OPTIONS] NAME; BODY; end

function: Type 'help function' for related documentation

Current functions are: .  N_  abbr  add2virtualenv  alias  cd  cdsitepackages  cdvirtualenv  contains_seq  deactivate  delete-or-exit  dirh  dirs  down-or-search  eval  export  fish_config  fish_default_key_bindings  fish_indent  fish_mode_prompt  fish_prompt  fish_sigtrap_handler  fish_update_completions  fish_vi_cursor  fish_vi_key_bindings  fish_vi_mode  funced  funcsave  grep  help  history  hostname  isatty  la  ll  ls  man  math  mimedb  mktmpenv  mkvirtualenv  nextd  nextd-or-forward-word  open  popd  prevd  prevd-or-backward-word  prompt_pwd  psub  pushd  rmvirtualenv  seq  setenv  sgrep  trap  type  umask  up-or-search  vared  vf  workon  
command: Unknown option '--'
/opt/local/share/fish/functions/type.fish (line 3): command -s -- $i
                                                    ^
in command substitution
    called on line 121 of file '/opt/local/share/fish/functions/type.fish',

in function 'type',
    called on standard input,
    with parameter list '-p command-not-found'

in function '__fish_command_not_found_setup',
    called on line 6 of file '/opt/local/share/fish/functions/fish_prompt.fish',
    with parameter list 'prompt_pwd'

in event handler: handler for generic event 'fish_command_not_found'


       command ‐‐ run a program

   Synopsis
       command [OPTIONS] COMMANDNAME [ARGS...]

command: Type 'help command' for related documentation

fish: Unknown command 'prompt_pwd'
/opt/local/share/fish/functions/fish_prompt.fish (line 6): prompt_pwd
                                                           ^
in command substitution
    called on line 26 of file '/opt/local/share/fish/functions/fish_prompt.fish',

in function 'fish_prompt',
    called on standard input,

in command substitution
    called on standard input,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions