From 43edbf4a915b3cf06160cb0bb7b07964725960ff Mon Sep 17 00:00:00 2001 From: David Adam Date: Fri, 7 Feb 2020 20:43:14 +0800 Subject: [PATCH] config.fish: drop PATH modifications on Solaris-derived systems Fixes #6556. Although present since 2006, fish no longer relies on POSIX-compliant tools to the same degree. This code causes a platform specific change that makes the tests fail, so remove it. --- share/config.fish | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/share/config.fish b/share/config.fish index 400556832..acba33c09 100644 --- a/share/config.fish +++ b/share/config.fish @@ -115,19 +115,6 @@ function : -d "no-op function" true end -# -# This is a Solaris-specific test to modify the PATH so that -# Posix-conformant tools are used by default. It is separate from the -# other PATH code because this directory needs to be prepended, not -# appended, since it contains POSIX-compliant replacements for various -# system utilities. -# - -if test -d /usr/xpg4/bin - not contains -- /usr/xpg4/bin $PATH - and set PATH /usr/xpg4/bin $PATH -end - # Add a handler for when fish_user_path changes, so we can apply the same changes to PATH function __fish_reconstruct_path -d "Update PATH when fish_user_paths changes" --on-variable fish_user_paths set -l local_path $PATH