__fish_macos_set_env: don't create empty PATH components
It was creating empty entries for blank lines, which will actually create '.' for colon-separated vars Fixes #5809
This commit is contained in:
parent
f7817a2586
commit
90547a861a
@ -181,7 +181,8 @@ if status --is-login
|
||||
if [ -f $path_file ]
|
||||
while read -l entry
|
||||
if not contains -- $entry $result
|
||||
set -a result $entry
|
||||
test -n "$entry"
|
||||
and set -a result $entry
|
||||
end
|
||||
end <$path_file
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user