From 50f401d4a8d2c2888ab7f880627f1240c8c50bfd Mon Sep 17 00:00:00 2001 From: Joe Kutner Date: Thu, 9 May 2019 07:25:15 -0500 Subject: [PATCH] Added comments --- exports.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/exports.go b/exports.go index 9e5cf80..8362769 100644 --- a/exports.go +++ b/exports.go @@ -25,6 +25,8 @@ func ParseExportsFileLine(line string) (bool, string, string) { export := strings.Split(components[0], " ") if strings.TrimSpace(export[0]) == "export" { val := strings.TrimSpace(components[1]) + + // Ideally we'd eval, but we don't want to eval things like $PATH embedded in the val if string(val[0]) == "\"" && string(val[len(val)-1]) == "\"" { val = val[1: len(val)-1] }