Closed OrbitalHustler closed 1 year ago
You mean ~/.local/share/chezmoi/test.tmpl
correct?
Can you diff ~/test
and ~/.local/share/chezmoi/toinclude
to confirm?
You mean
~/.local/share/chezmoi/test.tmpl
correct?
Yes
Can you diff
~/test
and~/.local/share/chezmoi/toinclude
to confirm?(ins)~/.../share/chezmoi$ diff ~/test toinclude 1,2c1 < echo "abcd" < --- echo "abcd"
These Unicode BOMs are added by some programs on Windows. chezmoi does not use them. You need to remove them from your files.
Oh indeed, the files were UTF8 BOM format... Sorry for wasting you time, and thanks
Describe the bug
Including a file in another file adds an unwanted character as the first character of the include block.
To reproduce
Create
./test
:{{ include "toinclude" }}
Create
./toinclude
echo "abcd"
Run
chezmoi apply
and open~/test
in vim :Expected behavior
No extra character added.
Output of
chezmoi doctor