From 90547a861a13806cdfcf479e279527b2cb18c922 Mon Sep 17 00:00:00 2001 From: Aaron Gyes Date: Thu, 11 Apr 2019 02:49:29 -0700 Subject: [PATCH] __fish_macos_set_env: don't create empty PATH components It was creating empty entries for blank lines, which will actually create '.' for colon-separated vars Fixes #5809 --- share/config.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/config.fish b/share/config.fish index c5268fa6b..6934b74ea 100644 --- a/share/config.fish +++ b/share/config.fish @@ -181,7 +181,8 @@ if status --is-login if [ -f $path_file ] while read -l entry if not contains -- $entry $result - set -a result $entry + test -n "$entry" + and set -a result $entry end end <$path_file end