E408 fish_title.fish throws error after upgrade to fish 3.4.0 · Issue #8778 · fish-shell/fish-shell · GitHub
[go: up one dir, main page]

Skip to content

fish_title.fish throws error after upgrade to fish 3.4.0 #8778

@anoldguy

Description

@anoldguy

OS: Pop OS 21.10
Fish: 3.4.0 installed via ubuntu ppa: deb http://ppa.launchpad.net/fish-shell/release-3/ubuntu/ impish main

Here are the basics:

» fish --version
fish, version 3.4.0
~ 
» uname -a
Linux talon 5.16.11-76051611-generic #202202230823~1646248261~21.10~2b22243 SMP PREEMPT 
    Wed Mar 2 20: x86_64 x86_64 x86_64 GNU/Linux
~ 
» echo $TERM
xterm-256color

Upon upgrading via 'apt dist-upgrade -y', I got the following error:

...<snip>
Setting up fish (3.4.0-1~impish) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libglib2.0-0:amd64 (2.68.4-1ubuntu1) ...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for dbus (1.12.20-2ubuntu2) ...
Processing triggers for mailcap (3.69ubuntu1) ...
/usr/share/fish/functions/fish_title.fish (line 7): $(...) is not supported. In fish, please use '(prompt_hostname)'.
        and set ssh "[$(prompt_hostname | string sub -l 10)]"
                      ^
from sourcing file /usr/share/fish/functions/fish_title.fish
in command substitution
source: Error while reading file “/usr/share/fish/functions/fish_title.fish”
» 

Is this a bash-ism that leaked thru? Link to code

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0