I use a very simple makefile with TeX:
test-makefile:
echo '\newcommand{\seance}{seance1}' > seances/seance.tex
I run it:
$ make test-makefile
echo '\newcommand{\seance}{seance1}' > seances/seance.tex
My problem is that the file created in the folder named "seances" does not contain the two first characters it should contain:
ewcommand{\seance}{seance1}
The first line of it being empty.
Of course I can protect the first antislash: echo '\\newcommand{\seance}{seance1}
, etc. But in the real world it does not work: my real makefiles (I have posted an ECM) don't work.
What happens? How can bash/debian misunderstand the beginning of the command?
By the way:
$ bash --version
GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
$ cat /etc/debian_version
buster/sid
$ uname -a
Linux giljourdan 4.16.0-1-amd64 #1 SMP Debian 4.16.5-1 (2018-04-29) x86_64 GNU/Linux
\n
means "new line" – JacobIRR Jun 06 '18 at 23:12