asdf-vm/asdf

bug: `~/.asdf/asdf.fish` fails on fish 3.1.2 on raspbian bullseye

sdellysse opened this issue · 0 comments

Describe the Bug

On latest version of raspbian, fish startup fails after adding source ~/.asdf/asdf.fish

Steps to Reproduce

  1. Install raspbian bullseye 64bit lite on pi4b+ 8gb
  2. sudo apt install --yes curl git fish && sudo chsh -s /usr/bin/fish $USER
  3. git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.12.0
  4. echo 'source ~/.asdf/asdf.fish' >> ~/.config/fish/config.fish
  5. relogin

Expected Behaviour

asdf should load cleanly

Actual Behaviour

Linux towerpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Jul  1 02:43:50 2023 from 192.168.238.249
set --erase: Expected 1 args, got 2

~/.asdf/asdf.fish (line 21):
set --erase _asdf_bin _asdf_shims
^
from sourcing file ~/.asdf/asdf.fish
        called on line 1 of file ~/.config/fish/config.fish
from sourcing file ~/.config/fish/config.fish
        called during startup

(Type 'help set' for related documentation)
Welcome to fish, the friendly interactive shell
Type `help` for instructions on how to use fish

notroot@towerpi ~> cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

notroot@towerpi ~> fish --version
fish, version 3.1.2

Environment

OS:
Linux towerpi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux

SHELL:
fish, version 3.1.2

BASH VERSION:
5.1.4(1)-release

ASDF VERSION:
v0.12.0-816195d

ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/notroot/.asdf
ASDF_DIR=/home/notroot/.asdf
ASDF_CONFIG_FILE=/home/notroot/.asdfrc

No plugins installed
ASDF INSTALLED PLUGINS:


### asdf plugins affected (if relevant)

_No response_