bug: fish shell prints `realpath: Unknown option '--no-symlinks'`
SeriousBug opened this issue · 0 comments
SeriousBug commented
Describe the Bug
asdf's initialization script throws an error when using fish.
~/.asdf/asdf.fish (line 1):
builtin realpath --no-symlinks (dirname (status filename))
^
in command substitution
called on line 2 of file ~/.asdf/asdf.fish
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 realpath' for related documentation)
This is with versions:
codespace:/home/codespace> ~/.asdf/bin/asdf --version
v0.14.1-f00f759
codespace:/home/codespace> fish --version
fish, version 3.1.0
Steps to Reproduce
- Install asdf, following the instructions on the website to source
~/.asdf/asdf.fish
inside~/.config/fish/config.fish
- Don't set
ASDF_DIR
globally - Start a new shell.
Expected Behaviour
The error should not be thrown.
Actual Behaviour
The error is thrown.
Environment
I couldn't grab this with fish shell, where I'm getting the error, because the initialization of asdf fails.
OS:
Linux codespaces-ebfa50 6.5.0-1025-azure #26~22.04.1-Ubuntu SMP Thu Jul 11 22:33:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
SHELL:
GNU bash, version 5.0.17(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
BASH VERSION:
5.0.17(1)-release
ASDF VERSION:
v0.14.1-f00f759
ASDF INTERNAL VARIABLES:
ASDF_DEFAULT_TOOL_VERSIONS_FILENAME=.tool-versions
ASDF_DATA_DIR=/home/codespace/.asdf
ASDF_DIR=/home/codespace/.asdf
ASDF_CONFIG_FILE=/home/codespace/.asdfrc
ASDF INSTALLED PLUGINS:
air https://github.com/pdemagny/asdf-air main 4c5826e
bat https://gitlab.com/wt0f/asdf-bat.git master 64022b1
bottom https://github.com/carbonteq/asdf-btm.git master fd8a55a
bun https://github.com/cometkim/asdf-bun.git main f383312
delta https://github.com/andweeb/asdf-delta.git master 501318b
dust https://github.com/looztra/asdf-dust.git master 11bdb8a
eza https://github.com/lwiechec/asdf-eza.git master 11f578d
fd https://gitlab.com/wt0f/asdf-fd.git master 17d56e0
golang https://github.com/asdf-community/asdf-golang.git master f80bd84
jq https://github.com/lsanwick/asdf-jq.git master addae51
lazygit https://github.com/nklmilojevic/asdf-lazygit.git main 78e04f1
neovim https://github.com/richin13/asdf-neovim.git master d6118ad
nodejs https://github.com/asdf-vm/asdf-nodejs.git master c36e6f0
pnpm https://github.com/jonathanmorley/asdf-pnpm.git master 184f8cb
ripgrep https://gitlab.com/wt0f/asdf-ripgrep.git master e836665
xh https://github.com/NeoHsu/asdf-xh master fb8d3e7
asdf plugins affected (if relevant)
No response