There seem to be only three rules about parsing the .env files: (1) they need to be encoded in UTF-8, (2) comment lines start with #
, and (3) the format is VAR=VAL
. But how quotation marks are parsed? Bash has it's specific rules for them, but .env are not Bash. I also found that Docker takes the quotation marks as-is. On another hand, I saw .env files using quotation marks.
Are there any formal rules? Should quotation marks be avoided in .env files, or when shouldn't they?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…