Fish conf breaks with older versions of fish that don't support fish_add_path

Bug #1961450 reported by Brian Pontarelli
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd
New
Undecided
Unassigned

Bug Description

It appears that in a recent version of snapd, a Fish configuration files is being installed to /usr/share/fish/vendor_conf.d/fish. This file contains this line:

fish_add_path -aP $snap_bin_path

This line breaks on some versions of fish because the command fish_add_path does not exist. I believe it was added in version 3.3, so it is rather new.

I would recommend removing this command or putting it in an if-block and falling back to updating the PATH variable instead.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.