From 6738296acec405c86eb8c8bde588f1577d0f4a69 Mon Sep 17 00:00:00 2001 From: Xavier Logerais Date: Sat, 22 Aug 2026 00:46:27 +0200 Subject: [PATCH] fix: Remove dead and broken basedir() from _helpers.bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit basedir() had a broken escape ($(dirname \"$-2\") makes no sense) and was never called anywhere in the repo — it's a leftover copy of the already-deprecated libs.deprecated/basedir.bash. bashrc already has its own get_script_dir() for the same need, with proper symlink resolution. --- _helpers.bash | 4 ---- 1 file changed, 4 deletions(-) diff --git a/_helpers.bash b/_helpers.bash index b36ec1d..2e32a80 100644 --- a/_helpers.bash +++ b/_helpers.bash @@ -1,7 +1,3 @@ -function basedir() { - (cd "$(dirname \"$-2\")" && pwd) -} - function _source_file_if_exists() { if [ -r "$1" ]; then test -n "${DEBUG_BASHRC}" && echo "-- Sourcing file $1"