mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-20 16:11:14 -03: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user