share/config: Don't split /etc/paths entries on spaces

This used `read -la`, which _splits_.

Instead, don't do that, each line is its own entry.

Fixes #5481.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-01-04 14:48:01 +01:00
parent eabda835d5
commit 04f1ea0680

View file

@ -196,7 +196,7 @@ if command -sq /usr/libexec/path_helper
for path_file in $argv[2] $argv[3]/*
if test -f $path_file
while read -la entry
while read -l entry
if not contains $entry $result
set result $result $entry
end