# test --left-delimiter and --right-delimiter flags to chezmoi execute-template
exec chezmoi execute-template --left-delimiter=[[ --right-delimiter=]] '[[ "ok" ]]'
stdout ^ok$

# test that template delimiters can be set in files
exec chezmoi cat $HOME${/}template
cmp stdout golden/template

-- golden/template --
<no value>(nested)
-- home/user/.local/share/chezmoi/.chezmoitemplates/nested --
# chezmoi:template:left-delimiter=(( right-delimiter=))
((- . -))
-- home/user/.local/share/chezmoi/template.tmpl --
# chezmoi:template:left-delimiter=[[ right-delimiter=]]
# chezmoi:template:missing-key=default
[[ .MissingKey ]]([[ template "nested" "nested" ]])
