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.
#
VAR=VAL
Are there any formal rules? Should quotation marks be avoided in .env files, or when shouldn't they?
1.4m articles
1.4m replys
5 comments
57.0k users