mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-04 00:53:41 +08:00
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:
parent
059804612a
commit
40f5dd200b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user