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 committed by ridiculousfish
parent 059804612a
commit 40f5dd200b

View File

@ -208,7 +208,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