Lines from conf files that are comments should not be passed to shell.Expand (#374)

This commit is contained in:
Frederik Ring
2024-02-23 17:53:04 +01:00
committed by GitHub
parent e8307a2b5b
commit 9b768c71e6
4 changed files with 25 additions and 0 deletions

7
cmd/backup/testdata/comments.env vendored Normal file
View File

@@ -0,0 +1,7 @@
# This is a comment about `why` things are here
# FOO="${bar:-qux}"
# e.g. `backup-$HOSTNAME-%Y-%m-%dT%H-%M-%S.tar.gz`. Expansion happens before`
BAR=xxx
BAZ=$QUX