Jerome Benoit - 2 days ago

It appears that on GNU/Linux Debian 12 (Bookworm) with texlive
2022 as default, the write18 part fails to process the generated
maxima batch script. More precisely the redirection '>' to the log
file gets concatenate to the name of the script that is passed to
maxima. This patch mainly fixes this issue. In practice, it discards
the redirection part of the commandline and it delegates the log
writing part to maxima via the maxime procedures 'writefile' and
'writeclose'. Along side some minor cleanups are performed.
All in all this patch harden the write18 part.