__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
This commit is contained in:
Aaron Gyes 2019-04-11 02:49:29 -07:00
parent f7817a2586
commit 90547a861a

View file

@ -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