From 9070f11df00d5b38e6f8c9c121e0821e540ef06e Mon Sep 17 00:00:00 2001 From: Kevin Turner <83819+keturn@users.noreply.github.com> Date: Fri, 13 Mar 2026 17:00:50 -0700 Subject: [PATCH] replace python (relpath) with realpath realpath (with its --relative-to option) was added to coreutils v8.15 in 2012. https://github.com/coreutils/coreutils/commit/77ea441f79aa115f79b47d9c1fc9c0004c5c7111 --- deer | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/deer b/deer index 6539b9f..3757d74 100644 --- a/deer +++ b/deer @@ -261,10 +261,7 @@ deer-get-relative() { local TMP TMP=${1:-${DEER_DIRNAME%/}/$DEER_BASENAME[$DEER_DIRNAME]} - TMP="`python -c ' -import sys, os -print(os.path.relpath(sys.argv[1], sys.argv[2])) -' $TMP ${DEER_STARTDIR:-$PWD}`" + TMP="`realpath --relative-to ${DEER_STARTDIR:-$PWD} $TMP`" print -R $TMP:q }