From 2884cef180bc29e77b43ed86e7240610c58735c2 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Fri, 19 Nov 2021 10:59:58 +0800 Subject: [PATCH] fix: loadenv cant handle var value with special char --- cli/fish/config.fish | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cli/fish/config.fish b/cli/fish/config.fish index f0c72e5..64af807 100644 --- a/cli/fish/config.fish +++ b/cli/fish/config.fish @@ -88,7 +88,8 @@ if status is-interactive if string match -q '#*' $line continue end - eval export $line + set pair (string split -m 1 '=' -- $line) + eval "set -gx $pair[1] \"$pair[2]\"" end < $argv[1] end @@ -97,5 +98,6 @@ if status is-interactive loadenv .env end end + readenv end