Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
617 views
in Technique[技术] by (71.8m points)

environment variables - How quotation marks in .env files are parsed?

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...