Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
/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 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".