From 1f96e58852e2e5a934364043cf010142be3c0a5c Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Mon, 29 Sep 2025 09:30:35 +0200 Subject: [PATCH] functions/realpath: remove weird wrapping Wrapping the same thing is redundant and wrapping grealpath is kinda pointless since we only provide completions for realpath. (cherry picked from commit 61b0368dac3a393ff0f53952a937cda60dbb8f27) --- share/functions/realpath.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/realpath.fish b/share/functions/realpath.fish index 3a08cce8d..592577ba6 100644 --- a/share/functions/realpath.fish +++ b/share/functions/realpath.fish @@ -7,7 +7,7 @@ # However, we only want our builtin if there is no external realpath command. if command -sq realpath - function realpath -w realpath -d "print the resolved path [command realpath]" + function realpath -d "print the resolved path [command realpath]" command realpath $argv end exit 0 @@ -15,7 +15,7 @@ end # If there is a HomeBrew installed version of GNU realpath named grealpath use that. if command -sq grealpath - function realpath -w grealpath -d "print the resolved path [command grealpath]" + function realpath -d "print the resolved path [command grealpath]" command grealpath $argv end exit 0