This is the mail archive of the
docbook-tools-discuss@sources.redhat.com
mailing list for the docbook-tools project.
Name of temporary files causes erratic behaviour
- From: Christian Marillat <marillat dot christian at wanadoo dot fr>
- To: docbook-tools-discuss at sources dot redhat dot com
- Date: Fri, 06 Dec 2002 15:17:15 +0100
- Subject: Name of temporary files causes erratic behaviour
- Reply-to: docbook-tools-discuss at sources dot redhat dot com
Hi,
http://bugs.debian.org/171985
/usr/share/sgml/docbook/utils-0.6.12/backends/dvi contains this part:
-----------------------------------------------------------------------------
[...]
# Convert from TeX to DVI
jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.out
if [ $? -ne 0 ]
then
cat ${SGML_FILE_NAME}.out
rm ${SGML_FILE_NAME}.out
rm ${SGML_FILE_NAME}.tex
exit 2
fi
rm ${SGML_FILE_NAME}.out
[...]
-----------------------------------------------------------------------------
Since (jade)tex for some reason uses the foo.out file for itself, tex
tries to read it and unsurprisingly stumbles over it, since this dvi
script redirects log output to it (line 2 above).
The erratic behaviour goes away immediately if I replace all '.out'
occurences in the dvi script by something else, e.g. '.out1'.