mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
__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
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue