From ec8a7d09c683aa6f7521fc1935442e7a86aa3b06 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Thu, 25 Aug 2022 19:00:29 +0200 Subject: [PATCH] completions/ant: Replace bogus realpath usage This used `realpath -eq`, which for GNU realpath: 1. Suppresses "most error messages" (-q) 2. Requires that all parts exist (rather than allowing the last not to) Since we don't actually need a real path here, just filter. Fixes #9099 --- share/completions/ant.fish | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/share/completions/ant.fish b/share/completions/ant.fish index 2d7837fc8..f8193cc33 100644 --- a/share/completions/ant.fish +++ b/share/completions/ant.fish @@ -49,10 +49,8 @@ function __fish_complete_ant_targets -d "Print list of targets from build.xml an end set -l tokens $argv - set -l buildfile (realpath -eq $buildfile (__get_buildfile $tokens)) - if test $status -ne 0 - return 1 # return nothing if buildfile does not exist - end + set -l buildfile (__get_buildfile $tokens | path filter) + or return 1 # return nothing if buildfile does not exist __get_ant_targets_from_projecthelp $buildfile end