/etc/paths.d entries are split when containing spaces #5481
I have added an entry in /etc/paths.d/ that contains a space in its path:
This path is split on space when it is added to $PATH:
However, this was not the case with fish 2.7.1:
I have opened a new terminal tab for each test so I think fish did not inherit a previous session's env vars.
The text was updated successfully, but these errors were encountered:
The code responsible:
while read -la entry if not contains $entry $result set result $result $entry end end <$path_file
And the character responsible for this: "a".
This used `read -la`, which _splits_. Instead, don't do that, each line is its own entry. Fixes #5481. [ci skip]